"http://api.rummble.com?method=user.getLoggedInUser" and signed it.
but this error message occur:
<response status="fail"><code>100</code><message>Invalid API Key</
message></response>
even with status message: "Response: HTTP/1.1 200 OK"
what is the problem?
Can you give an example of the whole http call you are making with
all the parameters. As at present I can't see any call arriving at our
servers which suggests its being failed by Mashery before it arrives
to us.
Thanks,
Clive
--
You received this message because you are subscribed to the Google
Groups "Rummble API" group.
To post to this group, send email to rummb...@googlegroups.com
To unsubscribe from this group, send email to
rummble-api...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rummble-api?hl=en
For API Documentation, visit http://developer.rummble.com/docs
To unsubscribe, reply using "remove me" as the subject.
OAuthConsumer consumer = new CommonsHttpOAuthConsumer("API KEY",
"Shared Secret"); //API KEY and Shared Secret from email
OAuthProvider provider = new DefaultOAuthProvider("http://
www.rummble.com/oauth/request_token",
"http://www.rummble.com/oauth/access_token",
"http://www.rummble.com/oauth/authorize");
authUrl = getOAuthProvider().retrieveRequestToken(consumer,
OAuth.OUT_OF_BAND);
consumer.setTokenWithSecret(consumerToken, consumerSecret);
String url = "http://www.rummble.com/oauth/authorize?
oauth_token="+consumer.getToken();
getOAuthProvider().retrieveAccessToken(consumer,
mNameField.getText().toString()); //enter the showed key in the
textbox
consumer.setTokenWithSecret(consumerToken, consumerSecret);
HttpGet request = new HttpGet("http://api.rummble.com?
method=user.getLoggedInUser"); //here's the problem
consumer.sign(request);
HttpClient httpClient = new DefaultHttpClient();
HttpResponse response = httpClient.execute(request);
On 13 Apr., 18:31, Claudio Weeraratne <lamp...@gmail.com> wrote:
> Hi,
> can you check you've put all the required parameter in the call?
> In your example the call would be:http://api.rummble.com?method=user.geLoggedInUser&oauth_consumer_key=
> [api_key]&oauth_signature=[signature]&oauth_token=[token]
>
> I'm sending you a mail with your API Key.
> Tell me if some parameters are not clear.
>
> Thanks,
> Claudio
>
> 010/4/13 Merdica <merdica1...@yahoo.com>
>
> > I have access and tried to get user information:
>
> > "http://api.rummble.com?method=user.getLoggedInUser" and signed it.
> > but this error message occur:
> > <response status="fail"><code>100</code><message>Invalid API Key</
> > message></response>
> > even with status message: "Response: HTTP/1.1 200 OK"
>
> > what is the problem?
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Rummble API" group.
> > To post to this group, send email to rummb...@googlegroups.com
> > To unsubscribe from this group, send email to
> > rummble-api...@googlegroups.com<rummble-api%2Bunsu...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/rummble-api?hl=en
> > For API Documentation, visithttp://developer.rummble.com/docs
OAuthProvider provider = new DefaultOAuthProvider(consumer,"http://
www.rummble.com/oauth/request_token",
"http://www.rummble.com/oauth/access_token",
"http://www.rummble.com/oauth/authorize");
Looking at the logs we see requests to /oauth/request_token that do
not have all the required parameters.
Clive
On Apr 14, 9:16 am, Merdica <merdica1...@yahoo.com> wrote:
> here ist my code in short:
>
> OAuthConsumer consumer = new CommonsHttpOAuthConsumer("API KEY",
> "Shared Secret"); //API KEY and Shared Secret from email
>
> OAuthProvider provider = new DefaultOAuthProvider("http://www.rummble.com/oauth/request_token",
I use OAuth and Signpost. It works for similar other APIs like
FireEagle.
And in the newest version of signpost you don't have to include the
consumer.
what for required parameters do I need? how can I build them in?
Also I don't know how to create the signature (I have read your doc).
It confuse me about the error message invalid API key.
I really don't know what I make wrong.
thank you for your help.
On 14 Apr., 11:17, Clive Cox <clive....@rummble.com> wrote:
> I have not used the library you are using but from a quick google,
> should you not include the consumer when creating the
> DefaultOAuthProvider, e.g.
>
> OAuthProvider provider = new DefaultOAuthProvider(consumer,"http://www.rummble.com/oauth/request_token",
/oauth/request_token?oauth_callback=oob
When I would expect to see something like:
/oauth/request_token?
oauth_callback=oob&oauth_consumer_key=7sz6scet3f6qmsxz25zfgn8tj&oauth_nonce=D2115EF1-9C8B-44E0-8B95-113C3E4CE1C6F&oauth_signature_method=HMAC-
SHA1&oauth_timestamp=1268219076&oauth_version=1.0&oauth_signature=e0ndAcBVywVDWaBdNHwx3mA8KNiU
%3D
Are you sure you get back a valid request token and then access token
from the first calls?
Is there anyway to see the actual full http GET you are making for
each of the calls?
Clive
1. http://www.rummble.com/oauth/authorize?oauth_token=52e5f768a38a91da50c5adbdfc9d64f1
2. shown in browser if I go to this url: 4715
3. consumerToken: b9624dffd2fc63c0c9ca9837c21d67c2
consumerSecret: 17dd7df2dc5829df2dad0eb49b82de51
it seems there is allright.
I'm still looking for to print out the httpGet for the calls.
On 14 Apr., 13:11, Merdica <merdica1...@yahoo.com> wrote:
> this is what I get:
>
> 1.http://www.rummble.com/oauth/authorize?oauth_token=52e5f768a38a91da50...
but there always the same error message "invalid API Key".
so I don't think my code ist wrong.
but there always the same error message "invalid API Key".
so I don't think my code ist wrong.
On 14 Apr., 13:32, Merdica <merdica1...@yahoo.com> wrote:
signing the request with signpost seems not to work.
I wrote it manually:
/*XXX = your oauth consumer key
YYY = your Rummble Shared Secret
ZZZ= your oauth consumer secret*/
long nonce1 = r.nextLong();
Long nonce=Math.abs(new Long(nonce1));
String oauth_nonce=nonce.toString();
HttpGet request = new HttpGet("http://api.rummble.com?
method=user.getLoggedInUser&oauth_consumer_key=XXX&oauth_token="+consumerToken
+"&oauth_signature_method=PLAINTEXT&oauth_signature=YYY%26"+ZZZ
+"&oauth_nonce="+oauth_nonce+"&oauth_version=1.0");
url:
http://api.rummble.com/?method=user.getLoggedInUser&oauth_consumer_key=XXX&oauth_token=36cf08f0f466592e5f6afca0ad6b92a9&oauth_signature_method=PLAINTEXT&oauth_signature=YYY%26ZZZ
&oauth_nonce=2010-04-14%2016:39:46&oauth_version=1.0
On 14 Apr., 15:12, Merdica <merdica1...@yahoo.com> wrote:
> I wrote the httpGet Request manually:
>
> http://api.rummble.com?method=user.getLoggedInUser&oauth_consumer_key...
signing the request with signpost seems not to work.
I wrote it manually:
/*XXX = your oauth consumer key
YYY = your Rummble Shared Secret
ZZZ= your oauth consumer secret*/
long nonce1 = r.nextLong();
Long nonce=Math.abs(new Long(nonce1));
String oauth_nonce=nonce.toString();
HttpGet request = new HttpGet("http://api.rummble.com?
method=user.getLoggedInUser&oauth_consumer_key=XXX&oauth_token="+consumerToken
+"&oauth_signature_method=PLAINTEXT&oauth_signature=YYY%26"+ZZZ
+"&oauth_nonce="+oauth_nonce+"&oauth_version=1.0");
url:
http://api.rummble.com/?method=user.getLoggedInUser&oauth_consumer_key=XXX&oauth_token=36cf08f0f466592e5f6afca0ad6b92a9&oauth_signature_method=PLAINTEXT&oauth_signature=YYY%26ZZZ
&oauth_nonce=2010-04-14%2016:39:46&oauth_version=1.0
On 14 Apr., 15:12, Merdica <merdica1...@yahoo.com> wrote:
> I wrote the httpGet Request manually:
>
> http://api.rummble.com?method=user.getLoggedInUser&oauth_consumer_key...