Open in Interactive Outlook Client

Re: Sending PM from server side.

From: jabbify@googlegroups.com <brian.moschel@gmail.com>
To: jabbify@googlegroups.com
Received: Monday, May 11, 2009 08:05 AM
You are right about not being able to send arbitrary data in a URL.  I will fix this issue tomorrow and email you when its working.  Sorry about that.

- Brian

On Mon, May 11, 2009 at 2:00 AM, Brian Moschel <brian.moschel@gmail.com> wrote:
Just to make sure I understand...do you mean you're going to send messages that will appear in the chat client to a user, but you don't want these messages showing up when a new person comes to the page?

One way to do that is send a message that isn't of type "message" and action "create" and change the simple client to listen for your new message type.  Only message.create messages get saved in the database.


On Mon, May 11, 2009 at 1:55 AM, Calvin <wmbdmw@gmail.com> wrote:
I'm not building a 1-1 client, but while using Jabbify with public, I'm going to send personalized messages to a user. And I really don't like to reveal private messages to the public.

On Mon, May 11, 2009 at 6:44 PM, Brian Moschel <brian.moschel@gmail.com> wrote:
The reason that is happening is because the query for new messages isn't specifying only "domain_wide" messages, so it gets those direct ones also.  If you build a 1-1 client, you'd grab history by grabbing the latest messages just from userA to userB, or from userB to userA.  If your chat client doesn't grab the history of your conversation, this won't be a problem.

Currently this doesnt quite work yet because we haven't implemented the right search to return messages from/to a certain user.  Are you making a chat client that would use history like this?  If so I will push up the priority of implementing this.

- Brian


On Mon, May 11, 2009 at 1:37 AM, Calvin <wmbdmw@gmail.com> wrote:
Great stuff!

One thing I have noticed is that even though it is a private message, others can see it once they reload their browser. Does it suppose to work like this?

Calvin


On Mon, May 11, 2009 at 5:57 PM, Brian Moschel <brian.moschel@gmail.com> wrote:
Hey Calvin,

As for direct messages, the following works:

https://jabbify.com/message_push?message=PM&action=create&type=message&to=<A valid User.from>&key=<api key>&name=test

I tested this by opening the same page with the Jabbify chat client in two browsers.  Only one browser displays the message, as you'd expect.

Let me know if you can't get this to work.  Looking into arbitrary data in one second.

On Sat, May 9, 2009 at 12:29 PM, Brian Moschel <brian.moschel@gmail.com> wrote:
Ok.  I will try it today in a little while and get back to you.

- Brian

On Sat, May 9, 2009 at 11:37 AM, Calvin <wmbdmw@gmail.com> wrote:
Sorry but I can't get it to work

  https://jabbify.com/message_push?key=<API_KEY> &type=message&action=direct&message=PM&to=<Recipient's Jabbify.from>

Also, I wasn't able to broadcast arbitrary data as well
  https://jabbify.com/message_push?key=<API_KEY> &type=message&action=create&message=PM&hello=world

On Sun, May 10, 2009 at 3:10 AM, Calvin <wmbdmw@gmail.com> wrote:
Just to make sure I can get the recipient's call_id by `CurrentUser.from` right?


On Sun, May 10, 2009 at 2:38 AM, Brian Moschel <brian.moschel@gmail.com> wrote:
Yes you can do this, but the "to" attribute has to be the person's call_id (their "from" attribute) not their username.  Give that a try.

You should be able to send arbitrary data through REST.

- Brian


On Sat, May 9, 2009 at 9:13 AM, Calvin <wmbdmw@gmail.com> wrote:

Hi,

I was looking at https://jabbify.com/demos/api.html #7. Send direct
message and I came up this question: can I send a direct message to a
user from server side?

So I tried:

 https://jabbify.com/message_push?key=<API
KEY>&name=Neo&type=message&action=direct&message=sweet&to=<Username>

It returned

 Sent to <Domain>

but it didn't come up on the client side as well as in moderate panel.

Any chance I can do this?

Also, will I be able to send arbitrary data thru the REST?

Thanks in advance,

Calvin








--
/Da Capo/



--
/Da Capo/









--
/Da Capo/








--
/Da Capo/





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Jabbify" group.
To post to this group, send email to jabbify@googlegroups.com
To unsubscribe from this group, send email to jabbify+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jabbify?hl=en
-~----------~----~----~----~------~----~------~--~---