In Advanced Rest Client, I can get a response that contains the management authorization token. But, when I do this in Objective-C code following this documentation: Management API Access Tokens
It doesn’t return the data.
The only headers I get are the following in the response:
For objective-c, this data is returned in the NSData *data object and needs to be converted to an NSDictionary to get the results. It is NOT in the response object that is returned.
OK, I have another issue now.
After I am able to get the token and I try to update the metadata, it says:
error = Forbidden;
errorCode = “unowned_resource”;
message = “User to be acted on does not match subject in bearer token.”;
statusCode = 403;
I honestly at this point do NOT understand what is going on.
If I take the token that is in the API Explorer tab, that works and it updates fine. But, when I retrieve a token automatically – the token it gives me says that it is forbidden.