On Fri, Aug 14, 2009 at 5:37 PM, Chad Etzel <c...@twitter.com> wrote:

>
> Hi Adam,
>
> If you really want to learn this yourself, the best method is to read
> through the oAuth spec here:
> http://oauth.net/core/1.0a
>
> This explains exactly how to create the signatures, etc...
>
> -Chad
>
> On Fri, Aug 14, 2009 at 6:34 PM, Adam Shannon<a...@ashannon.us> wrote:
> >
> >
> > On Fri, Aug 14, 2009 at 5:30 PM, Peter Denton <petermden...@gmail.com>
> > wrote:
> >>
> >> Hi Adam,
> >> If you want you can email me off list and I can help you use Abrahams.
> Its
> >> really about as simple as something as going to be that you can trust
> will
> >> work. Else, you might end up creating a lot of issues without knowing
> it.
> >>
> >> Regards
> >> Peter
> >>
> >> On Fri, Aug 14, 2009 at 3:25 PM, Julio Biason <julio.bia...@gmail.com>
> >> wrote:
> >>>
> >>> On Sat, Aug 15, 2009 at 7:25 AM, Adam Shannon<a...@ashannon.us> wrote:
> >>> > foreach ($oauth['parms'] as $parm) {
> >>> > $request_uri = $request_uri . $parm;
> >>> > }
> >>>
> >>> Well, you didn't state the results you're getting (which error) so I'm
> >>> just guessing here. If I'm not mistaken, PHP uses a hash for array
> >>> indexes and, thus, it may be adding the elements in the $request_uri
> >>> in the wrong order. I can't remember how to do that in PHP, but in
> >>> Python it would be something like:
> >>>
> >>> for key in sort(oauth['params'].keys()):
> >>>  request_uri += oauth['params'][key]
> >>>
> >>>
> >>> --
> >>> Julio Biason <julio.bia...@gmail.com>
> >>> Twitter: http://twitter.com/juliobiason
> >>
> >
> > @Julio
> > Thanks, the error is:
> > "Failed to validate oauth signature and token".
> > Also, do the attributes need to be in some specified order?
> > @Peter
> > I would really like to teach myself how to do this rather then just
> taking a
> > framework and relying on blackbox operations.
> >
> > --
> > - Adam Shannon ( http://ashannon.us )
> >
>


Many thanks, I've read some of the spec before but I shall read the entire
thing tomorrow.


-- 
- Adam Shannon ( http://ashannon.us )

Reply via email to