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.)
>
> *curl -u user_b:pass_b -d ""
> http:nielllo.jsonm/friendships/create/user_a.json
>
> {"description":"","screen_name":"user_a","url":null,"name":"user_a","protected":true,"profile_image_url":"http:\/\/
> s3.amazonaws.com
> \/twitter_production\/profile_images\/xxxx_o_normal.jpg","location":"London","id":xxxxxx,"followers_count":8}
> *
>
> 2.)
>
> *curl -u user_a:pass_a -d "user=user_b&text=bla"
> http://twitter.com/direct_messages/new.json
> {"request":"\/direct_messages\/new.json","error":"You cannot send messages
> to users who are not following you."}*
>
> And I've check the user_a twitter page, there is pending request from
> user_b but is not accepted.
>
> Any ideas?
> Daniello
>
> 2009/1/14 Abraham Williams <4bra...@gmail.com>
>
> 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 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 direct messages from user A to B. (ie how to accept the follow
>>> request by API)
>>>
>>> Thanks in advance,
>>> Daniello
>>>
>>
>>
>>
>> --
>> | Abraham Williams | Web Developer | http://abrah.am
>> | Web608 | Community Evangelist | http://web608.org
>> | gg&d | betaGeek | http://girlsgeeksanddating.com
>> | Micro-email: http://userscripts.org/scripts/show/38822
>> | This email is: [] blogable [x] ask first [] private
>>
>
>
>


-- 
| Abraham Williams | http://the.hackerconundrum.com
| Web608 | Community Evangelist | http://web608.org
| gg&d | betaGeek | http://girlsgeeksanddating.com
| Micro-email: http://userscripts.org/scripts/show/38822
| This email is: [] blogable [x] ask first [] private

Reply via email to