Skip to search.
yws-flickr · YDN Flickr Developer Support Group

Group Information

  • Members: 2573
  • Category: Development
  • Founded: Jul 5, 2005
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
Question about flickr.auth.getFrob   Message List  
Reply Message #25 of 7623 |
Re: [yws-flickr] Question about flickr.auth.getFrob

Jens Strobel wrote:
> <?php
> echo md5('foobarbazapi_key987654321methodflickr.auth.getFrob');
> ?>
>
> Output:
> 91216d07a9e945a8e2bf2b2660e7ba86

This is the correct MD5 hash for that string.

> Output in example:
> 5f3870be274f6c49b3e31a0c6728957f

Maybe they just fabricated this number? I dunno.

When I make my hash for the sig, I definitely do it the way you said you
are doing it. :(

-Beej




Fri Jul 22, 2005 9:29 pm

wronk
Offline Offline
Send Email Send Email

Message #25 of 7623 |
Expand Messages Author Sort by Date

Hi, i want to use the new authentication api but got a problem with flickr.auth.getFrob. I generate the api_sign (data from example: "non-web based app") with ...
Jens Strobel
kelloggz@... Send Email
Jul 22, 2005
7:16 pm

... ^^^^^^^^^ I am assuming foobarbaz is your Secret, right? So you have two pieces of info you're passing: method=flickr.auth.getFrob&api_key=987654321 I...
Beej Jorgensen
wronk Offline Send Email
Jul 22, 2005
7:34 pm

... Damn, copied the wrong example. On my last test i have sorted the params and hat dots in the method name. Didn't work.. <?php echo...
Jens Strobel
kelloggz@... Send Email
Jul 22, 2005
8:25 pm

the signature generated *should* be different. but maybe i'm misunderstanding your question. also you don't have the argument *values* in your example, but i...
jon madison
djallstar Offline Send Email
Jul 22, 2005
8:48 pm

... This is the correct MD5 hash for that string. ... Maybe they just fabricated this number? I dunno. When I make my hash for the sig, I definitely do it the...
Beej Jorgensen
wronk Offline Send Email
Jul 22, 2005
9:29 pm

yeah must be fabricated. just got a frob (making sure this time to put the periods in the method call name ;) ... -- Jon Madison http://www.smartbrother.org If...
jon madison
djallstar Offline Send Email
Jul 22, 2005
9:48 pm

... Sorry but i didn't understand what you mean....
Jens Strobel
kelloggz@... Send Email
Jul 22, 2005
9:54 pm

i mean like Beej says, the value they give in the documentation must be fabricated. i just used my real credentials, and got back a frob. j. ... -- Jon Madison...
jon madison
djallstar Offline Send Email
Jul 22, 2005
10:10 pm

... I haved used my real credentials too, but i didn't worked :( You make the md5 over secret, the api_key and method? Strange. Hmmmm, i will check my app...
Jens Strobel
kelloggz@... Send Email
Jul 22, 2005
10:21 pm

here's some code i cooked up to test the same: i've tried it more than a few times and it works fine for me: === <?php error_reporting(E_ALL); $secret =...
jon madison
djallstar Offline Send Email
Jul 22, 2005
11:12 pm

and thanks for bringing up the issue--i needed to write this anyway & had been putting it off. :) j. ... -- Jon Madison http://www.smartbrother.org If i don't...
jon madison
djallstar Offline Send Email
Jul 22, 2005
11:12 pm

Hi again, thanks for the example, but it didn't work here, i get: <rsp stat="fail"> <err code="96" msg="Invalid signature"/> </rsp> Ok now from the beginning...
Jens Strobel
kelloggz@... Send Email
Jul 25, 2005
8:25 am

Okay, now, after looking into it, i have the solution. It was my fault :( By the way, i thought it is my fault the whole time ;-) I have didn't set the secret...
Jens Strobel
kelloggz@... Send Email
Jul 26, 2005
12:40 pm

... I think it shouldn't be different when i am using the same data as in example on: http://www.flickr.com/services/api/auth.spec.html "9.2. Non-web based...
Jens Strobel
kelloggz@... Send Email
Jul 22, 2005
9:07 pm

ahhh, got you. i mistook the foobarbaz as the arguments, and not the secret, as described in their docs. j. ... -- Jon Madison http://www.smartbrother.org If i...
jon madison
djallstar Offline Send Email
Jul 22, 2005
9:36 pm

just sent a request with my real details and also got "invalid signature". not quite sure if api_key should be part of the hash or what, although even removing...
jon madison
djallstar Offline Send Email
Jul 22, 2005
9:47 pm

... I have something seen right now. In the example they use: http://flickr.com/services/rest/... But i am using the XML-RPC-URL: ...
Jens Strobel
kelloggz@... Send Email
Jul 22, 2005
9:48 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help