RPX API Call auth_info is returning "missing parameter" error

Posted by James Lawruk on Stack Overflow See other posts from Stack Overflow or by James Lawruk
Published on 2010-02-16T18:09:51Z Indexed on 2010/03/31 10:33 UTC
Read the original article Hit count: 446

Filed under:
|
|
|
|

I cannot get the RPX auth_info API call to work. It keeps returning the error: "Missing parameter: apiKey" I am using the C# RPX Helper Class provided on their Wiki:RPX Helper Class

Below is my code in my Page_Load method. The RPX service works by sending a POST to a Url that I specify. My code gets the token from the post data shown below. Then I call the AuthInfo API method.

string token = Request.Params["token"];
string apiKey = "xxxxxxxxxxxxxxx"; //my API key
Rpx rpx = new Rpx(apiKey, "http://rpxnow.com");
XmlElement xmlElement = rpx.AuthInfo(token);

Everything looks good. The token is populated. Within their code, the "apiKey" value pair is added to the post data written to the Request stream. Has anyone had luck with this? Any ideas why this is not working? Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about post