Hello team,
I am trying to create a developer by POSTing information to the server. I am using wordpress which has a special function for that (wp_remote_post).
Bellow is the code I wrote and the given respone. The question is how I need to present the data I want to post to Apigee. I think the problem is related with the representation of the data.
Any help will be much apriciated!
//CODE
$url= 'https://api.enterprise.apigee.com/v1/organizations/vaninayordanova-trial/developers';
$response = wp_remote_post('https://api.enterprise.apigee.com/v1/organizations/vaninayordanova-trial/developers', array(
'headers' => array('Authorization'=>
'Basic XXXXXXX' ,'Content-Type' => 'application/json'),
'body' => array(
'email'=> 'emailZZZZZ@abv.bg'
)));
//ERROr
[https://github.com/apigee/edge-php-sdk](https://github.com/apigee/edge-php-sdk)