Re: [twitter-dev] Re: [twitcurl Lib] Direct Message signbase string

2010-10-19 Thread Matt Harris
You should also update the hostname to as you are using the wrong one. The API 
should be accesses through:
http://api.twitter.com/1

Making your request:
http://api.twitter.com/1/direct_messages/new.xml

Best,
@themattharris

On Oct 19, 2010, at 6:05, Tom van der Woerdt  wrote:

> Yes, you should.
> 
> An easy way to test your Base String is to paste it into the validation
> box at
> .
> 
> Tom
> 
> 
> On 10/19/10 2:03 PM, balbari wrote:
>> at the end of URL part should I remove a '?' ?
>> 
>> BAD ==> POST&http%3A%2F%2Ftwitter.com%2Fdirect_messages%2Fnew.xml%3F
>> GOOD ==> POST&http%3A%2F%2Ftwitter.com%2Fdirect_messages%2Fnew.xml
>> 
>> GOOD case right?
>> 
>> 
>> On 10월19일, 오후5시15분, Tom van der Woerdt  wrote:
>>> Looks like there's a '?' in the URL part. Shouldn't be there.
>>> 
>>> Tom
>>> 
>>> On Oct 19, 2010, at 7:24 AM, balbari  wrote:
>>> 
>>> 
>>> 
 I'm using twitcurl library.
>>> 
 When you send a direct message an error occurs.
>>> 
 Error Message : Incorrect signature
>>> 
 When I send a message signbase string is shown below.
>>> 
 POST&http%3A%2F%2Ftwitter.com%2Fdirect_messages%2Fnew.xml%3F
 screen_name%3DRECEIVERNM&
 oauth_consumer_key%3DCKEY%26
 oauth_nonce%3D1287392764ed%26
 oauth_signature_method%3DHMAC-SHA1%26
 oauth_timestamp%3D1287392764%26
 oauth_token%3DATOKEN%26
 oauth_version%3D1.0%26
 text%3D12345"
>>> 
 See you on the signbase wrong ones?
 If you know something is wrong, please correct parts.
>>> 
 --
 Twitter developer documentation and resources:http://dev.twitter.com/doc
 API updates via Twitter:http://twitter.com/twitterapi
 Issues/Enhancements 
 Tracker:http://code.google.com/p/twitter-api/issues/list
 Change your membership to this 
 group:http://groups.google.com/group/twitter-development-talk- 원본 텍스트 숨기기 -
>>> 
>>> - 원본 텍스트 보기 -
>> 
> 
> -- 
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group: 
> http://groups.google.com/group/twitter-development-talk

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Re: [twitcurl Lib] Direct Message signbase string

2010-10-19 Thread Tom van der Woerdt
Yes, you should.

An easy way to test your Base String is to paste it into the validation
box at
.

Tom


On 10/19/10 2:03 PM, balbari wrote:
> at the end of URL part should I remove a '?' ?
> 
> BAD ==> POST&http%3A%2F%2Ftwitter.com%2Fdirect_messages%2Fnew.xml%3F
> GOOD ==> POST&http%3A%2F%2Ftwitter.com%2Fdirect_messages%2Fnew.xml
> 
> GOOD case right?
> 
> 
> On 10월19일, 오후5시15분, Tom van der Woerdt  wrote:
>> Looks like there's a '?' in the URL part. Shouldn't be there.
>>
>> Tom
>>
>> On Oct 19, 2010, at 7:24 AM, balbari  wrote:
>>
>>
>>
>>> I'm using twitcurl library.
>>
>>> When you send a direct message an error occurs.
>>
>>> Error Message : Incorrect signature
>>
>>> When I send a message signbase string is shown below.
>>
>>> POST&http%3A%2F%2Ftwitter.com%2Fdirect_messages%2Fnew.xml%3F
>>> screen_name%3DRECEIVERNM&
>>> oauth_consumer_key%3DCKEY%26
>>> oauth_nonce%3D1287392764ed%26
>>> oauth_signature_method%3DHMAC-SHA1%26
>>> oauth_timestamp%3D1287392764%26
>>> oauth_token%3DATOKEN%26
>>> oauth_version%3D1.0%26
>>> text%3D12345"
>>
>>> See you on the signbase wrong ones?
>>> If you know something is wrong, please correct parts.
>>
>>> --
>>> Twitter developer documentation and resources:http://dev.twitter.com/doc
>>> API updates via Twitter:http://twitter.com/twitterapi
>>> Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
>>> Change your membership to this 
>>> group:http://groups.google.com/group/twitter-development-talk- 원본 텍스트 숨기기 -
>>
>> - 원본 텍스트 보기 -
> 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk