Andy Smith, basic PHP library for OAuth. Example of Authenticated Query?

126 views
Skip to first unread message

Harcom

unread,
Apr 10, 2012, 9:57:00 AM4/10/12
to Meetup API
I've downloaded Andy Smith's basic PHP library for OAuth.

I've tried out the test client and put in the various endpoints for
the various stages and got to getting an access token, an altered
example of which is
oauth_token=0a42aa156da2c1c0ca955b384679f453&oauth_token_secret=816da9fbc16b269d4e368e40e716a6de&member_id=77005511

How do use Andy's PHP Oauth library to make a an authenticated api
request to get a list of members for a meetup group?

I understand its just two lines of code, first to set the access code
for the request and additional parameters and the second to fetch the
result. Is this so? If so, what are these commands?

Thanks.

Jazz.

Doug Tangren

unread,
Apr 10, 2012, 10:50:27 AM4/10/12
to meetu...@googlegroups.com

If you are using oauth1 you will need to generate a request signature to make an authenticated request. I am not familiar with the library you mentioned, but request signing is most likely a built-in feature of the library.

Harcom

unread,
Apr 10, 2012, 11:01:02 AM4/10/12
to Meetup API
Yes the url parameters includes timestamp, signature etc.
But what would the call be?
Would it be something like

http://api.meetup.com/2/members?group_urlname=NYCMeetup

with the access token, signature etc as additional parameters?

With thanks for your prompt response,

Jazz.



On Apr 10, 3:50 pm, Doug Tangren <d...@meetup.com> wrote:
> On Tue, Apr 10, 2012 at 9:57 AM, Harcom <harcommun...@gmail.com> wrote:
> > I've downloaded Andy Smith's basic PHP library for OAuth.
>
> > I've tried out the test client and put in the various endpoints for
> > the various stages and got to getting an access token, an altered
> > example of which is
>
> > oauth_token=0a42aa156da2c1c0ca955b384679f453&oauth_token_secret=816da9fbc16­b269d4e368e40e716a6de&member_id=77005511

Doug Tangren

unread,
Apr 10, 2012, 11:04:24 AM4/10/12
to meetu...@googlegroups.com
On Tue, Apr 10, 2012 at 11:01 AM, Harcom <harcom...@gmail.com> wrote:
Yes the url parameters includes timestamp, signature etc.
But what would the call be?
Would it be something like

http://api.meetup.com/2/members?group_urlname=NYCMeetup

with the access token, signature etc as additional parameters?



You can use url parameters or request header. See http://www.meetup.com/meetup_api/auth/#oauth for more documentation.

Ben Lobaugh

unread,
Apr 10, 2012, 9:53:58 PM4/10/12
to meetu...@googlegroups.com, bffr...@gmail.com
Rahul mentioned that he had developed a PHP oAuth client for Meetup. I have not seen the project yet though. Anyone know where it is?
--
You received this message because you are subscribed to the Google
Groups "Meetup API" group.
To unsubscribe from this group, send email to
meetup-api+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/meetup-api?hl=en?hl=en

Reply all
Reply to author
Forward
0 new messages