I confirm post is needed, plus (see the code below):
* value for 'token' key must be the actual token RPX is POSTing to
your token_url
* in the first line I applied 2 functions (working only with PHP5) to
transform the JSON data into an array, if needed
$result = Set::reverse(json_decode( // JSON to object to array
$HttpSocket->post(
'
https://rpxnow.com/api/v2/auth_info',
array(
'apiKey' => $apiKey,
'token' => $this->params['form']['token'], // POSTed to
token_url after a successful auth
)
)
));
Best,
Mario
On 24 Ott, 12:41, Mario <
mario.calli...@gmail.com> wrote:
> Hi Chris,
>
> I am just beginning to approach RPX from a CakePHP perspective, so I
> am very interested in sharing experiences.
>
> I was wondering, shouldn't this be a $HttpSocket->post request instead
> of get?
>
> From RPX website:
> "Make the auth_info API call
> HTTP POST tohttps://
rpxnow.com/api/v2/auth_infowith the following