You can iterate through the returned JsonRpcResponses returned from
robot.submit(newWave);
Like so:
List<JsonRpcResponse> jrrs = this.submit(w,
RPC_SERVER_URL);
for(JsonRpcResponse r : jrrs)
{
Map<ParamsProperty, Object> data = r.getData();
if(data.containsKey("WAVE_ID"))
{
success = true;
LOG.log(Level.WARNING, "WaveId:" +
data.get("WAVE_ID") + " with " + blipNumber + " of blips");
}
}
d3developer.com | twitter.com/fractastical | twitter.com/jdietz
On Fri, Apr 23, 2010 at 11:15 AM, RAVINDER MAAN <[email protected]> wrote:
> Hello All
> I am creating a new wave by using Active Robot API by using following
> code.
>
> Wavelet wavelet = robot.newWave("wavesandbox.com",participantList);
> wavelet.setTitle("Title");
> Blip rootBlip = wavelet.getRootBlip();
> rootBlip.append("Content of the wave");
> robot.submit(wavelet, "http://sandbox.gmodules.com/api/rpc");
> LOG.severe("Wave Id = " +wavelet.getWaveId().getId());
>
> After creating wave i want to find out its waveId.But when i try
> to get its waveid as u can see i am trying to log waveid of new wave
> it doesn`t log actual wave id instead it logs id`s like "Wave Id =
> TBD_-1968122361" .I know how to get wave id of new wave in previous
> API.Can anybody tell me how to get waveId of new wave through recent
> version 2 API. I want to store the waveId in database for future use.
> Thanks In advance.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-wave-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-wave-api?hl=en.