{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
avatar image
0
Question by Vanina Yordanova · Oct 09, 2017 at 01:20 PM · 325 Views apigee edgerequestsdeleteurlrequest header

Delete a developer

I am trying to delete a developer, who is logged in into his account. I am doing this through Wordpress website. The registerred wordpress user corresponds to an Apigee developer. In this case I am trying only to remove a developer. If I try with just adding an e-mail at the end of the url it works but when I try to get the email of the currently logged user it gives me the following message.

    [body] => 
    [response] => Array
        (
            [code] => 405
            [message] => Method Not Allowed
        )

    [cookies] => Array
        (
        )

    [filename] => 
    [http_response] => WP_HTTP_Requests_Response Object
        (
            [response:protected] => Requests_Response Object
                (
                    [body] => 
                    [raw] => HTTP/1.1 405 Method Not Allowed



//Delete from apigee	
$urlbegin='https://api.enterprise.apigee.com/v1/organizations/xxx-trial/developers/';
$varemail= $current_user->user_email ;
$url= $urlbegin.$varemail;


$args = array(
    'method' => 'DELETE','headers'=> array( 'Authorization' => 'Basic xxxxxxxx'));
$response = wp_remote_request( esc_url_raw($url), $args );
	


	
	if ( is_wp_error( $response ) ) {
    $error_message = $response->get_error_message();
    echo "Something went wrong: $error_message";
     }  else {
   echo 'Response:<pre>';
    print_r( $response );
    echo '</pre>';
   
	 }


Comment
Add comment Show 1
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sai Saran Vaidyanathan ♦   · Oct 09, 2017 at 11:35 PM 0
Link

HI @Vanina Yordanova - not sure I understood the problem completely. Are you trying to delete a developer who is consuming your API hosted in Apigee or a developer whose is logging into Apigee to expose or develop APIs ? The end point URL you mentioned is for the former

Can you elaborate on what exactly you want to do please ?

Close

1 Answer

  • Sort: 
avatar image
0
Best Answer

Answer by Vanina Yordanova · Oct 10, 2017 at 06:19 AM

Hello:)
I was trying to delete a developer that consumes my API's. Actually I succeeded in doing that. I created a plugin that deletes a wordpress account and then combined that with another plugin that deletes a developer here. So now it's fine!! Thank you for the reply.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

66 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Urgent account deletion / change of company name 0 Answers

CORS on APIStudio but not on APIAry 1 Answer

is there a page for updates on Apigee service or API availability , announcements, service bulletins? 1 Answer

Apigee & developer platform presentation 1 Answer

Rollback of the proxies /state deployed on APigee 0 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges