Meetup API on localhost

421 views
Skip to first unread message

cumulata

unread,
Mar 10, 2012, 10:20:25 AM3/10/12
to meetu...@googlegroups.com
Hi guys,

I wanna use the meetup API, but I can't find correct information about the OAuth Consumer.
I'm working on local, so, I access to my website with this url : http://localhost:3000/

What I need to set there :
Website : ???
Redirect URI : ???

Thanks guys !

Doug Tangren

unread,
Mar 12, 2012, 10:06:05 AM3/12/12
to meetu...@googlegroups.com

-Doug Tangren
http://lessis.me


On Sat, Mar 10, 2012 at 10:20 AM, cumulata <cumu...@yahoo.com> wrote:
http://localhost:3000/


Hi Cumulata,

Sorry for the late response. When you create an oauth consumer at http://www.meetup.com/meetup_api/oauth_consumers/create/ the only required field is the name.

If you are using oauth 1,  the name is the only info you need to provide for us. If you are using oauth 2, then you need to also provide your redirect uri. That would be  http://localhost:3000/ in your case. The website is a url is optional. We use that to generate a link on the oauth permission view that users see with granting access and on the apps page at http://www.meetup.com/account/oauth_apps/. It's completely optional but we encourage you do so to provide more info to the user authorizing your app about who you are to provide an extra level of trust.

You can edit this information at anytime but clicking the "Edit details" link on your own oauth consumer listing under http://www.meetup.com/meetup_api/oauth_consumers/. This enables you to change your redirect_uri if you want to keep the same consumer in dev and then when you go live.

Let me know if that helps.

Angel X. Moreno

unread,
Oct 3, 2014, 12:52:59 AM10/3/14
to meetu...@googlegroups.com
when i put http://localhost:3000 i get "The URL you provided is invalid. Try something like ”http://you.com“."

how do I woek on the oath 2 authentication on my local machine if i can not use localhost ?

Doug Tangren

unread,
Oct 3, 2014, 8:34:43 AM10/3/14
to meetup-api
On Fri, Oct 3, 2014 at 12:52 AM, Angel X. Moreno <angelx...@gmail.com> wrote:
when i put http://localhost:3000 i get "The URL you provided is invalid. Try something like ”http://you.com“."

how do I woek on the oath 2 authentication on my local machine if i can not use localhost ?

Hi Angel,

This sounds like a bug on our end. Do you see this error when creating a new consumer or editing an existing consumer?
 

On Monday, March 12, 2012 10:06:05 AM UTC-4, doug wrote:

-Doug Tangren
http://lessis.me



On Sat, Mar 10, 2012 at 10:20 AM, cumulata <cumu...@yahoo.com> wrote:
http://localhost:3000/


Hi Cumulata,

Sorry for the late response. When you create an oauth consumer at http://www.meetup.com/meetup_api/oauth_consumers/create/ the only required field is the name.

If you are using oauth 1,  the name is the only info you need to provide for us. If you are using oauth 2, then you need to also provide your redirect uri. That would be  http://localhost:3000/ in your case. The website is a url is optional. We use that to generate a link on the oauth permission view that users see with granting access and on the apps page at http://www.meetup.com/account/oauth_apps/. It's completely optional but we encourage you do so to provide more info to the user authorizing your app about who you are to provide an extra level of trust.

You can edit this information at anytime but clicking the "Edit details" link on your own oauth consumer listing under http://www.meetup.com/meetup_api/oauth_consumers/. This enables you to change your redirect_uri if you want to keep the same consumer in dev and then when you go live.

Let me know if that helps.

--
--
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

---
You received this message because you are subscribed to the Google Groups "Meetup API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetup-api+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hai Nguyen

unread,
Dec 8, 2014, 9:07:07 AM12/8/14
to meetu...@googlegroups.com
Hi Doug, do you have an update on this issue?  

My issue is very similar to this.  I, too, am trying to redirect back to localhost using the meetup oauth2 api.  When I change the callbackURL to 'http://www.amazon.com', both in my app and on meetup, it works just fine.  But when i change the callbackURL to 'http://localhost:5000/authenticate/callback', I get this ugly error from node:

Error: connect ECONNREFUSED
    at OAuth2Strategy._createOAuthError (/Users/hnguyen/projects/LocalLearners/node_modules/passport-oauth/node_modules/passport-oauth2/lib/strategy.js:348:17)
    at /Users/hnguyen/projects/LocalLearners/node_modules/passport-oauth/node_modules/passport-oauth2/lib/strategy.js:171:43
    at /Users/hnguyen/projects/LocalLearners/node_modules/passport-oauth/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:177:18
    at ClientRequest.<anonymous> (/Users/hnguyen/projects/LocalLearners/node_modules/passport-oauth/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:148:5)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at Socket.socketErrorListener (http.js:1547:9)
    at Socket.EventEmitter.emit (events.js:95:17)
    at net.js:440:14
    at process._tickCallback (node.js:419:13)


Some possibility relevant information:
- Tried using 127.0.0.1, no dice.
- Using node.js with the passport module
- I am new to implementing oauth2

Any thoughts would help, thank you!
-Hai

Doug Tangren

unread,
Dec 8, 2014, 10:18:57 AM12/8/14
to meetup-api
On Mon, Dec 8, 2014 at 9:07 AM, Hai Nguyen <nmh...@gmail.com> wrote:
Hi Doug, do you have an update on this issue?  

My issue is very similar to this.  I, too, am trying to redirect back to localhost using the meetup oauth2 api.  When I change the callbackURL to 'http://www.amazon.com', both in my app and on meetup, it works just fine.  But when i change the callbackURL to 'http://localhost:5000/authenticate/callback', I get this ugly error from node:

Error: connect ECONNREFUSED
    at OAuth2Strategy._createOAuthError (/Users/hnguyen/projects/LocalLearners/node_modules/passport-oauth/node_modules/passport-oauth2/lib/strategy.js:348:17)
    at /Users/hnguyen/projects/LocalLearners/node_modules/passport-oauth/node_modules/passport-oauth2/lib/strategy.js:171:43
    at /Users/hnguyen/projects/LocalLearners/node_modules/passport-oauth/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:177:18
    at ClientRequest.<anonymous> (/Users/hnguyen/projects/LocalLearners/node_modules/passport-oauth/node_modules/passport-oauth2/node_modules/oauth/lib/oauth2.js:148:5)
    at ClientRequest.EventEmitter.emit (events.js:95:17)
    at Socket.socketErrorListener (http.js:1547:9)
    at Socket.EventEmitter.emit (events.js:95:17)
    at net.js:440:14
    at process._tickCallback (node.js:419:13)


Some possibility relevant information:
- Tried using 127.0.0.1, no dice.
- Using node.js with the passport module
- I am new to implementing oauth2

Any thoughts would help, thank you!

Hi Hai,

Let's continue this discussion on github - https://github.com/meetup/api/issues/56
 
-Hai

On Friday, October 3, 2014 8:34:43 AM UTC-4, Doug Tangren wrote:
On Fri, Oct 3, 2014 at 12:52 AM, Angel X. Moreno <angelx...@gmail.com> wrote:
when i put http://localhost:3000 i get "The URL you provided is invalid. Try something like ”http://you.com“."

how do I woek on the oath 2 authentication on my local machine if i can not use localhost ?

Hi Angel,

This sounds like a bug on our end. Do you see this error when creating a new consumer or editing an existing consumer?
 

On Monday, March 12, 2012 10:06:05 AM UTC-4, doug wrote:
Doug Tangren
Meetup Platform API Engineer
Reply all
Reply to author
Forward
0 new messages