I am trying to create Active Robot which can create new blips by
external event. For example I have 3rd party chat, and I need reflect
that chat to wave. So I have 2 problems:
1) I can't undestand If I got new message from chat how can I sent it
to robot?
2) I can't get access to wavelet form my robot:
public void onWaveletSelfAdded(WaveletSelfAddedEvent event)
{
try
{
waveletid = event.getWavelet().getWaveletId();
waveid = event.getWavelet().getWaveId();
}
catch(Exception ex)
{
log.info(ex.getMessage());
}
}
public void onBlipSubmitted(BlipSubmittedEvent blipSubmittedEvent)
{
try
{
Wavelet wavelet = fetchWavelet(waveid, waveletid, "http://
www-opensocial.googleusercontent.com/api/rpc");
}
catch(Exception ex)
{
log.info(ex.getMessage());
}
}
and from fetchWavelet I've got th error:
internalError: [email protected] is not a participant of wave id:
[WaveId wavesandbox.com!w+P4qmAunyI] wavelet id: [WaveletId
wavesandbox.com!conv+root]. Unable to apply operation:
{'method':'robot.fetchWave','id':'7574072','waveId':'wavesandbox.com!w
+P4qmAunyI','waveletId':'wavesandbox.com!conv
+root','blipId':'null','parameters':{}}
But I checked this wavelet, the IDs are same and it has my robot in
participants.
What am I doing wrong?
Thanks.
--
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.