Just a basic question - How do you pass event ids in a Streaming API

30 views
Skip to first unread message

Rahul

unread,
Mar 27, 2012, 4:33:55 AM3/27/12
to Meetup API
I'm still picking up java script after a long long time. This is a
very basic question:

I picked the example from http://www.meetup.com/meetup_api/docs/stream/2/rsvps/#polling.
This example doesn't tell me how to use event id as a parameter.

Do you have any example where I can pass multiple event ids as
parameters?

Rahul

Doug Tangren

unread,
Mar 27, 2012, 9:20:49 AM3/27/12
to meetu...@googlegroups.com


The streaming methods have a filter that is limited to only one event_id.
 
Rahul

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

Rahul

unread,
Mar 27, 2012, 1:13:03 PM3/27/12
to Meetup API
I know it's a silly question - How do you pass that one event id? I
mean I tried this code : but it doesn't seems to be returning anything
when I pass my event_id and Change my RSVP from yes to no and then no
to yes.

mu.Rsvps(function(json) {
alert(json.member.member_id);
}, { event_id: 1234 });


On Mar 27, 6:20 am, Doug Tangren <d...@meetup.com> wrote:

Doug Tangren

unread,
Mar 27, 2012, 2:50:32 PM3/27/12
to meetu...@googlegroups.com
On Tue, Mar 27, 2012 at 1:13 PM, Rahul <bffr...@gmail.com> wrote:
I know it's a silly question - How do you pass that one event id? I
mean I tried this code : but it doesn't seems to be returning anything
when I pass my event_id and Change my RSVP from yes to no and then no
to yes.

mu.Rsvps(function(json) {
         alert(json.member.member_id);
     }, { event_id: 1234 });


The streams currently only publish public data, because the streams are unauthenticated. If this event you are testing is an event in a private group, you would not get the push notification as an anonymous user.

Can you send me a link to the event you are trying to test?

Rahul

unread,
Mar 28, 2012, 12:17:47 AM3/28/12
to Meetup API
To make the event_id work, here is the work around in the mu.js found through a link here.

Step 1) Hard code an event_id
   19        url: "http://stream.meetup.com/2/rsvps",
to
   19        url: "http://stream.meetup.com/2/rsvps",

Step 2) Disable ws
    76    if(supportsWebsockets()) {
to
    76    if(supportsWebsockets()) {



I'm no expert in JavaScript, I think here is the issue.

The example to pass event_id mentioned here:
    9      }, { event_id: 1234 });

used in the code here: 
   22        params: params

Has never been used in the code.
    57 mu.Stream = (function(config) {
    58    var $ = jQuery;
    59    var url = config.url || "http://stream.meetup.com/2/rsvps",
    60      wsUrl = config.wsUrl || url.replace(/^http/, 'ws'),
    61      log = config.log || function(msg) { },
    62      stopping = false,
    63      error = config.error || function(msg) {
    64         alert(msg);
    65      },


Am I right?

Rahul



---------- Forwarded message ----------
From: Doug Tangren <d...@meetup.com>
Date: Mar 27, 11:50 am
Subject: Just a basic question - How do you pass event ids in a
Streaming API
To: Meetup API

Rahul

unread,
Mar 28, 2012, 12:20:11 AM3/28/12
to Meetup API
To make the event_id work, here is the work around in the mu.js found through a link here.

Step 1) Hard code an event_id
   19        url: "http://stream.meetup.com/2/rsvps",
to

Doug Tangren

unread,
Mar 28, 2012, 9:35:38 AM3/28/12
to meetu...@googlegroups.com


This script has a dependency on jQuery. Are you loading that first?

Rahul

unread,
Mar 28, 2012, 2:40:16 PM3/28/12
to Meetup API
Yes, jQuery has been loaded first.


On Mar 28, 6:35 am, Doug Tangren <d...@meetup.com> wrote:
> On Wed, Mar 28, 2012 at 12:20 AM, Rahul <bffra...@gmail.com> wrote:
> > To make the event_id work, here is the work around in the mu.js<http://static2.meetupstatic.com/85636709280897896951410/script/api/mu.js>found through a link
> > here <http://www.meetup.com/meetup_api/docs/stream/2/rsvps/>.
>
> > Step 1) Hard code an event_id
> >    19        url: "http://stream.meetup.com/2/rsvps",
> > to
> >    19        url: "http://stream.meetup.com/2/rsvps?event_id=1234",
>
> > Step 2) Disable ws
> >     76    if(supportsWebsockets()) {
> > to
> >     76    if(supportsWebsockets()) {
>
> > *I'm no expert in JavaScript, I think here is the issue.*

Doug Tangren

unread,
Mar 28, 2012, 2:52:33 PM3/28/12
to meetu...@googlegroups.com
On Wed, Mar 28, 2012 at 2:40 PM, Rahul <bffr...@gmail.com> wrote:
Yes, jQuery has been loaded first.


Can you send me the event_id you are trying to test with?
Reply all
Reply to author
Forward
0 new messages