Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Roberto Gardenier
@Caroga
I was thinking of maybe using Socket.io for it, but Browserify is good as well.
As long as nobody get's to see the api keys etc.
Anything I could help you with @jkutianski, maybe?
Juan Pablo Kutianski
@jkutianski
Isn't a good idea use this on a browser client, i think. But it's useful if you want to use it on hybrid apps, like those made with phonegap.
Its easy block your account if you've no control of the API calls
Juan Pablo Kutianski
@jkutianski
@Caroga For now I've 2 problems. OAuth fails and the Websockets test don't work very well. If you want help, you will be very welcome.
Roberto Gardenier
@Caroga
I would like to help yeah, I will arrange some time this week in the evening so I can help you out.
Juan Pablo Kutianski
@jkutianski
@Caroga Ok thank.
Juan Pablo Kutianski
@jkutianski
@Caroga OAuth v1 is working
Roberto Gardenier
@Caroga
@jkutianski nice! I'm currently unable to get some free time this week, but I will have plenty of time after the 24th of dec (i quit my job ;-))
Juan Pablo Kutianski
@jkutianski
@Caroga The websocket test are working too! I leave you without work here too :clap: Hope you found a better one :sparkles:
Juan Pablo Kutianski
@jkutianski
@/all meetup-api now return ratelimit on each call
Ashley Narcisse
@darkfadr
I started to work on a project that will be interfacing with the Meetup.com api, I’d love to be able to help out and contribute to the api
Ashley Narcisse
@darkfadr
well … the node repo to be exact.lol
Juan Pablo Kutianski
@jkutianski
@darkfadr if you see something that needed to be changed, please fell free to open an issue.
@darkfadr PR will be welcome too.
This message was deleted
Roberto Gardenier
@Caroga
I totally forgot about Gitter.
Seems you've been busy amigo.
Roberto Gardenier
@Caroga
@jkutianski Are you here?
Juan Pablo Kutianski
@jkutianski
@Caroga Yes but I'm not logged all the time, sorry for the delay. I'm thinking on this jkutianski/meetup-api#11 now.
Good to know that Gitter has a Android app now :)
Roberto Gardenier
@Caroga
haha
No problem.
Juan Pablo Kutianski
@jkutianski
We are debating an issue on jkutianski/meetup-api#10 if you wish to help us to think.
@darkfadr you are welcome to the debate too. We need multiple points of view for that.
ohh I forget to mention you @Caroga
Roberto Gardenier
@Caroga
I will join the discussion when I get the time for it. Currently I am busy with some client tenders. I will check in again when possible. So far the discussion is going good, I agree on not having to map everything inside the project but as having to be able to generate the mappings dynamically you will have to go far, maybe that is not the preferred solution at this precise moment? Remember, KISS: keep it simple stupid;-)
Juan Pablo Kutianski
@jkutianski
Because KISS i'm not sure about the mapping table.
Angel S. Moreno
@angelxmoreno
Well hello community. I'm ready to get this party started
Angel S. Moreno
@angelxmoreno
this look familiar to anyone?
{ [Error: cannot GET /undefined?member_id=self&key=[my actual key] (401)]
        status: 401,
        text: '{"errors":[{"code":"auth_fail","message":"Invalid api key"}]}',
        method: 'GET',
        path: '/undefined?member_id=self&key=[my actual key] ' },
I am calling the getGroup method:
router.get('/groups', function (req, res, next) {
        req.meetup.getGroup({
            member_id: 'self'
        }, function (err, resp) {
            if(err){
                console.error('Found meetup error', err);
                return next(err);
            }
            res.send(resp);
        });
    });
Juan Pablo Kutianski
@jkutianski
Mmm... let me check.
Juan Pablo Kutianski
@jkutianski
getGroup = Fetches a Meetup Group by urlname
Probably you want to do getGroups
Juan Pablo Kutianski
@jkutianski
router.get('/groups', function (req, res, next) {
        req.meetup.getGroups({
            member_id: 'self'
        }, function (err, resp) {
            if(err){
                console.error('Found meetup error', err);
                return next(err);
            }
            res.send(resp);
        });
    });
@angelxmoreno hope this helps!
Angel S. Moreno
@angelxmoreno
@jkutianski you are correct. I can not get group details by its id, I must use its urlname. Seems a bit weird but it is outside the scope of the library. Thanks.
@jkutianski I guess a way around it would be to do a getGroups with the group id to get the urlname, then do another request to get the group details. Is the library compatible with the API's batch request feature?
Juan Pablo Kutianski
@jkutianski
member_id !== group_id. Can you elavorate the idea of /groups endpoint on your REST interface?
Angel S. Moreno
@angelxmoreno
@jkutianski what I mean is that my front-end view only has the group.id not the group.urlname so I would have to call getGroups() with the group.id to retrieve the group.urlname and then call getGroup() to actually get the group information
Angel S. Moreno
@angelxmoreno
thanks for the response on github @jkutianski
Juan Pablo Kutianski
@jkutianski
ok. But you are using member_id: self!
Angel S. Moreno
@angelxmoreno
oh, sorry, 2 seperate things. I was using member_id to grab all the groups that belong to the user. I understood what you said earlier. my thanks was for the question about batch requests :-)
Juan Pablo Kutianski
@jkutianski
to get the goup information you have to use
req.meetup.getGroups({
            group_id: gid
        },
Angel S. Moreno
@angelxmoreno
:+1: yep, got that sorted out
Juan Pablo Kutianski
@jkutianski
Happy to help.
Conor Graham
@conorg763
Is there a difference between the npm meetup and npm meetup api ?
Juan Pablo Kutianski
@jkutianski
@conorg763 https://www.npmjs.com/package/meetup is a little bit different.