Without any further information, I am going to guess that it's
probably an OAuth issue. Unfortunately, I don't think that you will be
able to use jQuery to do this. I'm betting that the API methods you
are calling with jQuery don't require any OAuth authentication. I
suppose it's possible that you could do all of the OAuth negotiation
and signing with straight javascript (because you'll have to build the
HTTP request yourself, instead of the very handy jQuery AJAX
functions), but it's not going to be easy. You'll probably have much
better luck using a server side scripting language (such as PHP, Perl,
Phython, Ruby, etc)

There is a list of OAuth libraries available here:
http://dev.twitter.com/pages/oauth_libraries

Apparently there is actually a Javascript OAuth library, but as they
mention on that page you probably shouldn't use it (because among
other things you'll likely end up exposing your Consumer token and
secret to anyone looking at your source code).

On Aug 8, 3:18 pm, Claudia <cbern...@gmail.com> wrote:
> HI all
>
> Just getting started with the Twitter API and simultaneously getting
> familiar with jSON. Does someone have an example of the best practice
> for updating a user status using Javascript/JQuery/jSON? I've
> successfully retrieved statuses and user information, but am
> struggling with the post side of things.
>
> Any help would be greatly appreciated!
> Thanks,
> Claudia

Reply via email to