[twitter-dev] Re: question with twitter color design
yes I would also like to know how to set this unmentioned color variable. On Nov 10, 11:13 pm, 爵溪 wrote: > hi,all > In twitter's 'setting' we can choose 5 colors (background, text, > links, sidebar, sidebar border),but i notice that links in the sidebar > have a hover background color( just like white+sidebar background > color ) ,which is not from the 5 colors i metioned above and not > privided by the api . > any idea how to calculate this color?
[twitter-dev] Cached Imaged and The API - Nightmare
One of the tools my app offers is the ability to customize and create a avatar that can be updated from the site... the problem I am having is I have all the users cached on the site so profile image/data do not need to be requested when a persons profile is being viewed... The problem is the images are appearing on Twitter just fine but its been 8 hours since the last test I ran on 30 users and the images still have not been updated in the API data... I just ran my re-cache script and everything is still the same.. I manually verified the profile_img_url was the same in both the users/show and verify_credentials methods... Still the same images. Is there something going on today or what?
[twitter-dev] Re: Twitter Consumer Key issues
Just login to your own account an create an application... it takes like 30 seconds then just copy the 2 new key files into your settings or wherever they are defined. On Oct 27, 3:45 pm, chris7878 wrote: > I hired a developer to create a twiter application for me. This > developer did not complete the job, adn gave up about half way > through. He was able to obtain a twitter consumer and secret key, and > i now need to login to change a setting, however i do not know what > twitter account or login was used to create the key. Is there > anywhere or any way i can find this information? > > Any help is greatly appreciated > mitchell.chris at gmail.com > > Thanks
[twitter-dev] Re: No Cursor Data Returned
I did try putting it in the array but only did one more quick test. I will have to try it again. I am pretty sure from the limited amount of documentation that the array holds post values for when you make a POST api call. If the OAuth class is this buggy (given that the array is the issue and I fix it later) this class really should not be posted on the Twitter API wiki as the main PHP OAuth example. More testing for now... On Oct 27, 8:01 pm, Dave Briccetti wrote: > I also recommend using Wireshark, tcpdump or the like to get an > authoritative picture of what’s happening. And if there is indeed a > bug, the output serves as clear proof.
[twitter-dev] Re: No Cursor Data Returned
I think it could be the OAuth classs now because of a recent error but it does not seem to work when I put it in an array either. Furthermore this is the class that Twitter directly links to from the API Wiki under PHP examples... If it is this buggy (if in fact it does not work even as an array option) it really should not be posted there as it's a giant headache. >From what I can see from the limited documentation the array() only holds post args for when you make an API call that requires POST fields and values but I will do some more testing with it. On Oct 27, 8:01 pm, Dave Briccetti wrote: > I also recommend using Wireshark, tcpdump or the like to get an > authoritative picture of what’s happening. And if there is indeed a > bug, the output serves as clear proof.
[twitter-dev] Re: No Cursor Data Returned
Further moor I edited the OAuth script for some debugging and output the exact string returned by the CURL call and there is still no next_cursor showing up. On Oct 27, 1:52 pm, TylerC wrote: > Idk the OAuth files just return all the data from the CURL query there > is not any parsing done to it from what I can see. It just gives you > whatever it gets from Twitter which leads me to believe I am missing > some kind of parameter or there is a bug with the API and OAuth. > > On Oct 27, 1:46 pm, JDG wrote: > > > The cursor stuff is still somewhat new. Just because it's on the wiki > > doesn't mean it was provided by Twitter (it's not). It may not have been > > updated to handle cursors. You should do a dump via a network monitoring > > tool, like wireshark or even just curl, to see what's sent to the oAuth > > class. I can't imagine the HTTP response being that different, unless > > they're doing stuff with User-Agents. > > > On Tue, Oct 27, 2009 at 11:44, TylerC wrote: > > > > Its the standard OAuth class provided from the Twitter wiki... > > > > When I dump it, even with var dump or print it begins with : > > > > > > > > > > > But then right after the tag the data ends. Its very odd and > > > its driving me nuts. > > > > On Oct 27, 1:40 pm, JDG wrote: > > > > are you sure they're not returned via the script? did you dump the data > > > you > > > > received using wireshark or some other network monitoring tool? it could > > > be > > > > that the $oauth class is simply not parsing it correctly. > > > > > On Tue, Oct 27, 2009 at 11:31, TylerC wrote: > > > > > > I really don't get it now... I am making a call to get all my friends > > > > > and I am only getting data between the tags. I need to > > > > > get cursors and while they are returned when going through the browser > > > > > they do not show up when ran from my script. wtf... > > > > > > $users = $oauth->oAuthRequest( > > > > > " > > >http://twitter.com/statuses/friends.xml?cursor=-1 > > > > > ", > > > > > array(), "GET" > > > > > ); > > > > > > $xml = simplexml_load_string($users); > > > > > $next_page = $xml->next_cursor; > > > > > > Its like the only data returned is the user array... > > > > > -- > > > > Internets. Serious business. > > > -- > > Internets. Serious business.
[twitter-dev] Re: No Cursor Data Returned
Idk the OAuth files just return all the data from the CURL query there is not any parsing done to it from what I can see. It just gives you whatever it gets from Twitter which leads me to believe I am missing some kind of parameter or there is a bug with the API and OAuth. On Oct 27, 1:46 pm, JDG wrote: > The cursor stuff is still somewhat new. Just because it's on the wiki > doesn't mean it was provided by Twitter (it's not). It may not have been > updated to handle cursors. You should do a dump via a network monitoring > tool, like wireshark or even just curl, to see what's sent to the oAuth > class. I can't imagine the HTTP response being that different, unless > they're doing stuff with User-Agents. > > > > On Tue, Oct 27, 2009 at 11:44, TylerC wrote: > > > Its the standard OAuth class provided from the Twitter wiki... > > > When I dump it, even with var dump or print it begins with : > > > > > > > > But then right after the tag the data ends. Its very odd and > > its driving me nuts. > > > On Oct 27, 1:40 pm, JDG wrote: > > > are you sure they're not returned via the script? did you dump the data > > you > > > received using wireshark or some other network monitoring tool? it could > > be > > > that the $oauth class is simply not parsing it correctly. > > > > On Tue, Oct 27, 2009 at 11:31, TylerC wrote: > > > > > I really don't get it now... I am making a call to get all my friends > > > > and I am only getting data between the tags. I need to > > > > get cursors and while they are returned when going through the browser > > > > they do not show up when ran from my script. wtf... > > > > > $users = $oauth->oAuthRequest( > > > > " > >http://twitter.com/statuses/friends.xml?cursor=-1 > > > > ", > > > > array(), "GET" > > > > ); > > > > > $xml = simplexml_load_string($users); > > > > $next_page = $xml->next_cursor; > > > > > Its like the only data returned is the user array... > > > > -- > > > Internets. Serious business. > > -- > Internets. Serious business.
[twitter-dev] Re: No Cursor Data Returned
Its the standard OAuth class provided from the Twitter wiki... When I dump it, even with var dump or print it begins with : But then right after the tag the data ends. Its very odd and its driving me nuts. On Oct 27, 1:40 pm, JDG wrote: > are you sure they're not returned via the script? did you dump the data you > received using wireshark or some other network monitoring tool? it could be > that the $oauth class is simply not parsing it correctly. > > > > On Tue, Oct 27, 2009 at 11:31, TylerC wrote: > > > I really don't get it now... I am making a call to get all my friends > > and I am only getting data between the tags. I need to > > get cursors and while they are returned when going through the browser > > they do not show up when ran from my script. wtf... > > > $users = $oauth->oAuthRequest( > > "http://twitter.com/statuses/friends.xml?cursor=-1 > > ", > > array(), "GET" > > ); > > > $xml = simplexml_load_string($users); > > $next_page = $xml->next_cursor; > > > Its like the only data returned is the user array... > > -- > Internets. Serious business.
[twitter-dev] No Cursor Data Returned
I really don't get it now... I am making a call to get all my friends and I am only getting data between the tags. I need to get cursors and while they are returned when going through the browser they do not show up when ran from my script. wtf... $users = $oauth->oAuthRequest( "http://twitter.com/statuses/friends.xml?cursor=-1";, array(), "GET" ); $xml = simplexml_load_string($users); $next_page = $xml->next_cursor; Its like the only data returned is the user array...
[twitter-dev] Re: Cursor Not Being Returned When It Should
Nothing really? Is there any way to set the mount / start point of the simpleXML array? On Oct 27, 2:28 am, TylerC wrote: > Hey everyone, im trying to figure out why cursors are not being > returned... I am making a call > tohttp://twitter.com/statuses/friends.xml?cursor=-1 > to get my first page of friends through OAuth and simpleXML in PHP5. > > Everything is fine and the next_cursor shows up in my browser, but > when I try to extract it or even var dump the xml the tag does not > even show up. Heres how im getting it: > > $users = $oauth->oAuthRequest( > > "http://twitter.com/statuses/friends.xml?cursor=$page";, // Where > $page is -1 in this case... > array(), "GET" > ); > > $xml = simplexml_load_string($users); > > print_r($xml); > > //$next_page = $xml->next_cursor; > > I get only data located under the users array, any ideas?
[twitter-dev] Cursor Not Being Returned When It Should
Hey everyone, im trying to figure out why cursors are not being returned... I am making a call to http://twitter.com/statuses/friends.xml?cursor=-1 to get my first page of friends through OAuth and simpleXML in PHP5. Everything is fine and the next_cursor shows up in my browser, but when I try to extract it or even var dump the xml the tag does not even show up. Heres how im getting it: $users = $oauth->oAuthRequest( "http://twitter.com/statuses/friends.xml?cursor=$page";, // Where $page is -1 in this case... array(), "GET" ); $xml = simplexml_load_string($users); print_r($xml); //$next_page = $xml->next_cursor; I get only data located under the users array, any ideas?
[twitter-dev] Re: Check when a friendship was created
Well really I would just like to unfollow people I have followed for a while that haven't followed me back lol... It's pretty lame to me that this isnt already a feature but its cool I found my own way to implement the idea. Thanks for nothing :) On Oct 25, 7:31 pm, Zac Bowling wrote: > What you describe is a very spamy tactic people use to slowly grow > their follower counts without having having dramatically higher > following counts then follower counts. I HATE when people do that > because I get follows (usually from "marketing" or "social media > experts" pushing their personal brand and don't really care so much > about what I have to say and are just shooting for quantity rather > then quality). > > IIRC correctly, it could be against the TOS too. > > Zac Bowling > > On Sun, Oct 25, 2009 at 4:13 PM, TylerC wrote: > > > I am seeking the need to know when a friendship or when I have > > followed a given user. Basically, I want to scan my account for people > > I have been following, enter a given number of days, and unfollow them > > if they have not followed me back in that timespan. I have it all > > worked out expect for checking when I followed a given person. > > > Is there no way to do this via the API, from the looks of it I would > > have to do this artificially with a database or something right? > > > Thanks!
[twitter-dev] Check when a friendship was created
I am seeking the need to know when a friendship or when I have followed a given user. Basically, I want to scan my account for people I have been following, enter a given number of days, and unfollow them if they have not followed me back in that timespan. I have it all worked out expect for checking when I followed a given person. Is there no way to do this via the API, from the looks of it I would have to do this artificially with a database or something right? Thanks!
[twitter-dev] Re: Profile Image Update Via API -> Access Denied
Thanks Chad it was the content type, I made a quick function to grab the mime type as the avatar is randomly selected from a folder and changed my postfields as follows: curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array("image" => "@ $avatar", "type" => "$mime_type")); All seems to be working now, thanks for the push! On Oct 14, 11:10 pm, Chad Etzel wrote: > Most likely the content-type is not being set correctly. What is the > value of $new_image? > -Chad > > On Wed, Oct 14, 2009 at 10:29 PM, TylerC wrote: > > > Hey all I am having trouble getting Twitter to update profile > > avatars... From what I can tell I have the API calls straight but when > > I go to Twitter there is no avatar image and when I right click it and > > then click view image I get the following: > > > > > AccessDenied > > Access Denied > > 5C34DBD155FA0052 > > - > > > > Rd/SKr0AUrZiiT3K0jLhhVZ3EpVqWRKbP8NSlc26gQn21WIqkl7E9roK/ZaUFEfg > > > > > > > Here is my API call, the image being sent is a gif much smaller than > > 700kb and its the absolute path... > > > $url = 'http://twitter.com/account/update_profile_image.xml'; > > > $curl_handle = curl_init(); > > > curl_setopt($curl_handle, CURLOPT_URL, "$url"); > > > curl_setopt($curl_handle, CURLOPT_POST, 1); > > > curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array('Expect:')); > > > curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); > > > curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); > > > curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array("image" => "@ > > $new_image")); > > > curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password"); > > > $buffer = curl_exec($curl_handle); > > > curl_close($curl_handle); > > > echo $buffer; > > > Everything is returned properly with no errors but yet no image > > appears for the avatar just a blank space. Oddly enough the image name > > on the profile page is correct but it will not show... > > > Any ideas this is really pissing me off!? > > > Thanks!
[twitter-dev] Re: Profile Image Update Via API -> Access Denied
In this case it was /home/49090/domains/***/html/clients// tools/avatars/city_ninja.png On Oct 14, 11:10 pm, Chad Etzel wrote: > Most likely the content-type is not being set correctly. What is the > value of $new_image? > -Chad > > On Wed, Oct 14, 2009 at 10:29 PM, TylerC wrote: > > > Hey all I am having trouble getting Twitter to update profile > > avatars... From what I can tell I have the API calls straight but when > > I go to Twitter there is no avatar image and when I right click it and > > then click view image I get the following: > > > > > AccessDenied > > Access Denied > > 5C34DBD155FA0052 > > - > > > > Rd/SKr0AUrZiiT3K0jLhhVZ3EpVqWRKbP8NSlc26gQn21WIqkl7E9roK/ZaUFEfg > > > > > > > Here is my API call, the image being sent is a gif much smaller than > > 700kb and its the absolute path... > > > $url = 'http://twitter.com/account/update_profile_image.xml'; > > > $curl_handle = curl_init(); > > > curl_setopt($curl_handle, CURLOPT_URL, "$url"); > > > curl_setopt($curl_handle, CURLOPT_POST, 1); > > > curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array('Expect:')); > > > curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); > > > curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); > > > curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array("image" => "@ > > $new_image")); > > > curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password"); > > > $buffer = curl_exec($curl_handle); > > > curl_close($curl_handle); > > > echo $buffer; > > > Everything is returned properly with no errors but yet no image > > appears for the avatar just a blank space. Oddly enough the image name > > on the profile page is correct but it will not show... > > > Any ideas this is really pissing me off!? > > > Thanks!
[twitter-dev] Profile Image Update Via API -> Access Denied
Hey all I am having trouble getting Twitter to update profile avatars... From what I can tell I have the API calls straight but when I go to Twitter there is no avatar image and when I right click it and then click view image I get the following: AccessDenied Access Denied 5C34DBD155FA0052 - Rd/SKr0AUrZiiT3K0jLhhVZ3EpVqWRKbP8NSlc26gQn21WIqkl7E9roK/ZaUFEfg Here is my API call, the image being sent is a gif much smaller than 700kb and its the absolute path... $url = 'http://twitter.com/account/update_profile_image.xml'; $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, "$url"); curl_setopt($curl_handle, CURLOPT_POST, 1); curl_setopt($curl_handle, CURLOPT_HTTPHEADER, array('Expect:')); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, array("image" => "@ $new_image")); curl_setopt($curl_handle, CURLOPT_USERPWD, "$username:$password"); $buffer = curl_exec($curl_handle); curl_close($curl_handle); echo $buffer; Everything is returned properly with no errors but yet no image appears for the avatar just a blank space. Oddly enough the image name on the profile page is correct but it will not show... Any ideas this is really pissing me off!? Thanks!