How to accept follow request via API

2009-01-14 Thread daniello
Hi, The problem: User A has his updates protected. User B has his updates public. There is no relation between these users yet. I need to send the direct message from user A to user B. I have credentials of both users. What API invocations should I execute in order to be able to send

Re: Sending JSONP with basic auth

2009-01-14 Thread Dimebrain
Thanks for the info about keeping callbacks in addition to using a proxy, I hadn't thought of doing it that way before. For the record I do use the proxy method for most of my development but was looking for a silver bullet for some client-side only experiments I was doing with Silverlight. The

Re: Sending JSONP with basic auth

2009-01-14 Thread Dimebrain
You're right, and that's exactly what I do 90% of the time. I was trying to see if I could provide a 100% client-side, no-proxy solution by way of JSON callbacks for a Silverlight library, and the proxy strategy works great, I was just pushing there. And it works for any call that doesn't need

Format of dates returned from JSON calls different between REST and Search APIs

2009-01-14 Thread Dimebrain
The JSON date format for REST calls is: Fri Dec 19 17:24:18 + 2008 But the JSON date format for Search calls is: Tue, 13 Jan 2009 18:10:17 + Is this a bug, or just something to account for? The property is created_at

Re: How to post using the API with Javascript?

2009-01-14 Thread Sylvain Munaut
I'm relatively new to programming with httpxml request in javascript, and I want my iPhone web application to be able to post to Twitter through Javascript. How can I do this? Simple: You can't. From the possible solutions : 1) XMLHttpRequest don't work for cross domain 2) Doing a

Re: How to accept follow request via API

2009-01-14 Thread Abraham Williams
Call http://apiwiki.twitter.com/REST+API+Documentation#create as user B to friend user A. Then call http://apiwiki.twitter.com/REST+API+Documentation#new as user A to send a DM to user B. On Wed, Jan 14, 2009 at 07:04, daniello daniel.kwiecin...@gmail.com wrote: Hi, The problem: User A

Consistent method names

2009-01-14 Thread Abraham Williams
I was thinking that it would be good to have more consistency in method names. This would be best implemented in the next version of the API and some of it may already be planned. Currently update, new, create, and follow are all used for creating something new. Could be simplified to just use

Re: How to accept follow request via API

2009-01-14 Thread Abraham Williams
I assumed that a protected user would be able to dm a requesting user but I guess not. You can repeat step one switching the users and then it will work. On Wed, Jan 14, 2009 at 08:20, Daniel Kwiecinski daniel.kwiecin...@gmail.com wrote: Ok, I did the following according your advice: 1.)

Re: Format of dates returned from JSON calls different between REST and Search APIs

2009-01-14 Thread Matt Sanford
Hi Daniel, It's a bug [1] we plan to fix when we unify the two APIs into the same output format. It is something to account for in the mean time. The new API will be new URLs and will run in parallel for six months or so, so you'll have time to adjust when the time comes. Thanks;

Re: Cannot fetch page 2 of replies

2009-01-14 Thread Matt Sanford
Hi Ryan, You can certainly use search that way with no problems. The replies API call would usually be faster than search since that is it's only function. I'm working with someone to find the cause of the missing replies. If you need something sooner search is probably your best

Re: How to accept follow request via API

2009-01-14 Thread Daniel Kwiecinski
Following your advice I executed: 3.) *curl -u user_a:pass_a -d http://twitter.com/friendships/create/user_b.json {description:,screen_name:user_b,url:null,name:user_b,protected:false,profile_image_url:http:\/\/ static.twitter.com

Re: Consistent method names

2009-01-14 Thread Alex Payne
We're going for more consistency, but also more RESTfulness. So rather than a bunch of creates in the method names, you'll POST to a collection you want to add to, and DELETE when you want to remove from it (but since many HTTP libraries don't really support DELETE, we'll provide an alias for

Re: Search by username out of date

2009-01-14 Thread Matt Sanford
Hi Lee, There are some users who do not appear in search because of an admin setting on the account [1]. If you have users encountering problems please have them file an issue with supp...@twitter.com using our help page, http://twitter.com/help/. Thanks; — Matt Sanford /

Right way to credit Twitter

2009-01-14 Thread Ryan Fogle
Our application will be using Twitter for data input. When we explain this to our users, how should this relationship be expressed? Is there preferred terminology? Is there a guide for how Twitter wants us to use their trademark?

Re: Right way to credit Twitter

2009-01-14 Thread Alex Payne
There's no preferred way. Powered by Twitter, whatever you like. On Wed, Jan 14, 2009 at 13:21, Ryan Fogle nayrel...@gmail.com wrote: Our application will be using Twitter for data input. When we explain this to our users, how should this relationship be expressed? Is there preferred

Secure Login from Flash SWF

2009-01-14 Thread Jon
I am adding my twitter timeline to my website (online flash portfolio) and have been successful in getting the data using SWX. I currently have the username and password set in the SWF however, and need to change this for obvious security reasons. I am new to PHP and am trying to search the web

Re: How to accept follow request via API

2009-01-14 Thread Damon Clinkscales
Until the follow request is approved by user A, B is not really following A. Therefore A can't send a DM to B. AFAIK, there's not a way to do the follow approval process step via the API. That step is done in the Twitter UI. -damon On Wed, Jan 14, 2009 at 10:40 AM, Daniel Kwiecinski