Everytime I try to create a new contact using the code below, the response is about a registered user…
$response = Unirest\Request::post(“https://mailee.p.mashape.com/contacts?api_key=xxxxx&subdomain=xxxxxxxb”,
array(
“X-Mashape-Key” => “YNov1zyYLKmshjFDYqG2lrdJWrZxp1MB5G2jsnBtkmWGLNScqk”,
“Content-Type” => “application/x-www-form-urlencoded”,
“Accept” => “application/json”
),
array(
“email” => "teste_john@mailee.me"
)
);
The response is:
code => (int) 201
raw_body => ‘{“id”:198437075,“email”:“0460.cpolxxxa@braxxco.com.br”,“name”:“carlos pereira oliveira”,“status”:“valid”,“address”:null,“age”:null,“birthday”:null,“company”:null,“forwarded_by”:null,“internal_id”:“5249”,“latitude”:null,“longitude”:null,“mobile”:null,“notes”:null,“phone”:null,“photo”:null,“position”:null,“sex”:null,“created_at”:“2015-12-03T16:55:15+00:00”,“updated_at”:“2015-12-03T17:00:08+00:00”,“errors”:{},“dynamic_values”:{}}’
body => object(stdClass) {
…
Doe mee aan de discussie - voeg hieronder een opmerking toe
Same here.