[twitter-dev] Re: Request entity too large / The XML page cannot be displayed with retweet

2011-06-10 Thread Randomness
Problem is solved, I added the following line: curl_setopt($curl, CURLOPT_POSTFIELDS, null); On Jun 10, 7:47 pm, Randomness wrote: > I just created some php code to retweet a tweet that meets certain > criteria. The code executes fine from one webserver when called from a > browser on

[twitter-dev] Request entity too large / The XML page cannot be displayed with retweet

2011-06-10 Thread Randomness
I just created some php code to retweet a tweet that meets certain criteria. The code executes fine from one webserver when called from a browser on my vista laptop. The same webpage gives an error mesage on anoher XP machine like this: The XML page cannot be displayed Cannot view XML input using

[twitter-dev] Re: statuses/mentions versus statuses/user_timeline

2011-04-12 Thread Randomness
ANSFER, true); curl_setopt($curl, CURLOPT_HTTPHEADER, $_h); $result = curl_exec($curl); curl_close($curl); On Apr 12, 3:48 pm, Taylor Singletary wrote: > Can you give an example of the HTTP headers or OAuth query parameters you're > sending along with both variations of the request? While

[twitter-dev] statuses/mentions versus statuses/user_timeline

2011-04-12 Thread Randomness
I wrote some code that retrieves tweets sent by an authenticated user which works fine. As the resource I use: http://api.twitter.com/1/statuses/user_timeline.xml which is used for te base string. For the CURLOPT_URL I added paramers to the URL like: ?count=200&page=1&include_rts=true >From the

[twitter-dev] Re: weird things with statuses/user_timeline

2011-04-11 Thread Randomness
your loop (i.e. > retrying after 10 seconds), and eventually reduce the count if that happens > too frequently. > > Arnaud / @rno <http://twitter.com/rno> > > On Sun, Apr 10, 2011 at 11:32 AM, Randomness > wrote: > > > > > I a trying to capture the last 3200

[twitter-dev] weird things with statuses/user_timeline

2011-04-10 Thread Randomness
I a trying to capture the last 3200 tweets from an authenticated user with the statuses/user_timeline method. I use count = 200 and have a function with calls the function 16 times with page being 1 to 16, so it looks like this: http://api.twitter.com/1/statuses/user_timeline.xml?user_id=".$user_i

[twitter-dev] Missing step in oauth implementation

2011-03-17 Thread Randomness
I have gone through the process of implementing oauth from scratch on my website, but am unclear about one step in the process. Acquiring a request token is not a problem and I am getting an oauth_token and oauth_token_secret fine, no problems there. But after this I am sending the user to Twitter

[twitter-dev] Search API and location

2010-12-28 Thread Randomness
I just tried to construct a query that searches for users by location, as it is registered in the location field of their profiles. I had no luck and it seems this is not possible. Am I just overlooking something, or is their another way to find people by location? -- Twitter developer documentat

[twitter-dev] Re: Search API Optional lang Has Problem.

2010-11-29 Thread Randomness
Same problem here. When lang=all is used I am getting results. When a language is specified I get zero results most of the time, while in some cases I do get a result. Seems very strange. On Nov 29, 9:25 am, fbparis wrote: > And same with some search operators (like source:xxx) > > Sorry for post

[twitter-dev] Re: Problem with & and &

2010-11-11 Thread Randomness
The problem looks quite nasty to me. I just tried to post the same tweet through a webpage with a php library and also through a website with Twitter anywhere, All gave the same wrong url back! On Nov 11, 6:00 pm, Randomness wrote: > I just ran into a strange problem while sending a tw

[twitter-dev] Re: Need Help Dumping my Tweets for Analysis

2010-11-11 Thread Randomness
Hi Sarah, You can download an Excel sheet here, that will get you your last 3200 tweets fast. This is as far back as Twitter currently allows us through the API. From the sheet you can also search through them. Go to http://twopcharts.com/downloads.php and download My_tweets_2.1 Good luck On No

[twitter-dev] Re: Problem with & and &

2010-11-11 Thread Randomness
wrote: > Twitter itself won't do this. It's definitely your library. > > 1. Make sure that you send the status via the POST body and not via the > query part of the URL. > 2. Don't do more encoding than absolutely necessary. > > Tom > > On 11/11/10 6:00

[twitter-dev] Problem with & and &

2010-11-11 Thread Randomness
I just ran into a strange problem while sending a tweet from Excel. I tried to post a message that included an ampersand like this: take a look at this: http://mywebsite.com/page.php?para1=this¶2=that When posted this message looks like this: take a look at th

[twitter-dev] Weird problem with signature generation

2010-09-22 Thread Randomness
As I am testing my application, I am running into a weird problem with signature generation. I am using the HMAC-SHA1 algorithm to generate a signature key that is 40 characters long. I subsequently convert this to bytes and base64 encode this. Comparing this with the example on twitter.com I get a

[twitter-dev] Re: using Excel as client

2010-09-20 Thread Randomness
e header. The header is simple: > Authorization: OAuth oauth_timestamp="", oauth_nonce="", > oauth_signature="", etc (of course, fill in the values) > > Tom > > On 9/21/10 12:45 AM, Randomness wrote: > > > > > that was the part of the

[twitter-dev] Re: using Excel as client

2010-09-20 Thread Randomness
t; > On 9/21/10 12:39 AM, Randomness wrote: > > > > > I am really getting confused. I did not show the base string, as I > > believe it is only used to caclulate the signature, but it looks like > > this: > > > POST&http%3A%2F%2Fapi.twitter.com%2F1%2Fsta

[twitter-dev] Re: using Excel as client

2010-09-20 Thread Randomness
OAuth " & Cells(17, 3) > > Also, if I am not mistaken, %22 is " and I definitely see those in your > Base String ;-) I'm not saying that it's impossible to have them there, > just that it's very unlikely that you need them there. > > Also, like Taylor

[twitter-dev] Re: using Excel as client

2010-09-20 Thread Randomness
Multiple things: >  * You missed a space in the Authorization header. Go look in my post ;) >  * You don't have to put the quotes in the Base String. Only in the > Authorization: header. > > Tom > > On 9/21/10 12:14 AM, Randomness wrote: > > > > > I still get the

[twitter-dev] Re: using Excel as client

2010-09-20 Thread Randomness
gt; > If you changed those, and it still doesn't work, please give these : >  * A sample Base String >  * A TCP dump of a full request, including response. > > Tom > > PS: Do I know you? > > On 9/20/10 8:38 PM, Randomness wrote: > > > > > I believe

[twitter-dev] using Excel as client

2010-09-20 Thread Randomness
I believe I have solved all the issues of getting the right information to send a tweet using Excel. Calculation of oauth_nonce and oauth_timestamp look good and also the calculation of the oath_signature seems to be in order. When I try to post the message I get a message asking for user name and