[twitter-dev] Cannot Make any changes to my contact list

2009-08-31 Thread Lynncal Bering

I cannot add people to my contact list. When I click on it it says
following but if the page is refreshed I'm no longer following and as
far as the people I am following, if I turn the cell phone
notifications off, the same thing happens as above, It doesn't change,
I'm still getting themk...


[twitter-dev] Is favoriting broken?

2009-08-31 Thread Hwee-Boon Yar

Is favoriting broken?

--
Hwee-Boon


[twitter-dev] Re: Website!

2009-08-31 Thread Andrew Badera

Wave your magic wand, demand some plz send teh codez, and your wish
will come true!

You're probably better going to the Drupal community for this if you
intend to use Drupal. This isn't a website building tutorial list.
This isn't a Drupal how-to list. Most of us here probably don't even
use Drupal. (I have, but not for anything Twitter related, but I'm
sure there's a module.)

∞ Andy Badera
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



On Mon, Aug 31, 2009 at 1:16 AM, priteshdesaiiampriteshde...@gmail.com wrote:

 I want to make a website closely tied with Twitter. I want users to
 signin, using Oauth. People can import there tweets on this site and
 also comment on others tweets.
 How can I make such a website?
 I would like to use Drupal to do it..
 Any ideas?



[twitter-dev] Re: Does anyone have an ASPinfo.asp file they can share?

2009-08-31 Thread Andrew Badera

Are you maybe talking browsercap.ini ?

Or are you actually talking the first result of googling aspinfo.asp
which is a third-party script of that name?

∞ Andy Badera
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



On Mon, Aug 31, 2009 at 1:29 AM, Sean Callahanseancalla...@gmail.com wrote:

 I am in need of an aspinfo.asp file to grab detailed system
 information on a windows server. I can't find one of those files to
 save my life. Can someone please email me one to
 s...@tweetphoto.com ??



[twitter-dev] Re: Does anyone have an ASPinfo.asp file they can share?

2009-08-31 Thread Coderanger

I have some asp scripts to handle server errors and email u the
results. They are invaluable for all classic asp sites. I can send u
them when my new laptop gfx card arrives tomorrow (all being well) and
I have my laptop up and running again. Let me know


[twitter-dev] Re: Started getting Incorrect Signature but I verified the signature is correct

2009-08-31 Thread Bill Evans

I found this thread: 
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/9e9bfec2f076e4f9

and tried switching my request to https instead of http and that fixed
my issue.

On Aug 28, 7:19 pm, Bill Evans b...@squarefactor.com wrote:
 I'm having the same issue with the same api call. I can call
 verify_credentials and get back a valid response but passing the same
 details to this resource gets me the Incorrect signature.

 On Aug 28, 2:48 am, jmathai jmat...@gmail.com wrote:

  Not sure what I'm doing wrong here (but I've been doing it for 2 days
  now).  I'm having trouble with a specific call.  I plugged the values
  into Eran's form to validate that my signature was correct (assuming
  his form is correct).  They match.  Anyone else having problems with
  this?

 http://www.hueniverse.com/hueniverse/2008/10/beginners-gui-1.html

  jmat...@[~]: telnet twitter.com 80
  Trying 168.143.162.100...
  Connected to twitter.com.
  Escape character is '^]'.
  POST /friendships/create.json?id=47537461 HTTP/1.1
  Host: twitter.com
  Authorization: OAuth realm=http://twitter.com/friendships/
  create.json,oauth_consumer_key=4oaLychIwGHyFbhe4IRBUA,oauth_token=42099395-
  JS6hZgn3BMo3utA312iFITYDZkjIFTW27icq0iHFb,oauth_nonce=9235222c326d637cbfb3980dcfc5d18a,oauth_timestamp=1251441668,oauth_signature_method=HMAC-
  SHA1,oauth_version=1.0,oauth_signature=fQjwjlUSia%2BZhEFsN
  %2FXwRvCSmWM%3D

  HTTP/1.1 401 Unauthorized
  Date: Fri, 28 Aug 2009 06:41:31 GMT
  Server: hi
  WWW-Authenticate: Basic realm=Twitter API
  Status: 401 Unauthorized
  Cache-Control: no-cache, max-age=300
  Content-Type: application/json; charset=utf-8
  Content-Length: 82
  Set-Cookie: lang=en; path=/
  Set-Cookie:
  _twitter_sess=BAh7CToTcGFzc3dvcmRfdG9rZW4iLWVlODFlYzNjODJhZWUxMzNmNGQ4MzFh
  %250ANmFjNTQzMmE1OTBhMjgwNjI6CXVzZXJpBMNiggI6B2lkIiU3NTM1MmRmNzA2%250AYzUzYWU4MjBlNTdmNjYxYTBlNDFjZCIKZmxhc2hJQzonQWN0aW9uQ29udHJv
  %250AbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%253D%253D--
  b67e2c06caf9578fbc9aedba5ba7ec6a6c46afb3; domain=.twitter.com; path=/
  Expires: Fri, 28 Aug 2009 06:46:30 GMT
  Vary: Accept-Encoding
  Connection: close

  {request:\/friendships\/create.json?id=47537461,error:Incorrect
  signature}Connection closed by foreign host.


[twitter-dev] Re: Website!

2009-08-31 Thread priteshdesai

Hmmm... may be if you can do that work, I'd be glad to talk to you
about this.
I haven't got any time to do this right now, but I want to quickly put
out a site for this. Reach me if yo can do this.

On Aug 31, 6:10 pm, Adam Cloud cloudy...@gmail.com wrote:
 **Sprinkles some fairy dust**

 priteshdesai, your best bet is to take some time to read the API
 documentation on how it 
 works.http://apiwiki.twitter.com/Twitter-API-Documentation

 However, I'm sure if you whispered the right numbers into the air that
 someone might be willing to do some freelance work for you, there's many
 capable minds here ;)


[twitter-dev] scripting error or new policy?

2009-08-31 Thread arezki

I have been following these requests for help and wonder what's
happening. I am actually affected myself and I am by no means spammer,
just an industry analyst. So my sense twitter has scripting
issues...problem is that twitter does not seem to respond.  Here's the
link, click at the last page listed at the bottom for the most recent
threads  http://help.twitter.com/forums/31935/entries/49964?page=30


[twitter-dev] Anyone updated jmathai OAuth library for 301s?

2009-08-31 Thread davidddn

Has anyone updated the Jaisen Mathai OAuth library to support manually
following the 301s?  Since FOLLOW_LOCATION doesn't work on POSTs, the
library needs to be re-written in parts to manually follow the
redirects.

Don't want to duplicate the work if someone has done it.

The code is here: https://github.com/jmathai/twitter-async/tree


[twitter-dev] Number of Tweets in a timeframe

2009-08-31 Thread DMain

Hi,

does anyone know how if it's possible to receive the number of search
results on a specified timeframe?

The following url returns all tweets from a day, but I have to parse
all results (and hope that their number is less than 1500). Also I
would prefer to have this number on a hourly basis.
http://search.twitter.com/search.atom?until=2009-08-26since=2009-08-26q=iphone

Any suggestions?
Thanks Dominic


[twitter-dev] Problem in past 48 hours: friendships/create severe lag or loss

2009-08-31 Thread PJB


Woke up this morning to find that several of our users have written in
noting that friendship actions taken through our application are not
working.

We confirmed this problem, across multiple IPs and multiple different
apps.  Friendships/create works inconsistently: about 30% of the time
they work as expected, and the new friends immediately appear in
friends/ids API call, as well as when logging into Twitter.com and
looking at the new friends pages (we see following).

Another 30% appear to be delayed for several hours, during which time
a call to friends/ids does NOT show new friends' ids (nor on
Twitter.com).  Another 30% appears to be lost forever (or severely
lagged).

All of these friendship creates are returning no errors.

A search of @twitterapi on Twitter indicates that this is a (fairly)
widespread problem.

Can Twitter give us some idea as to when this problem will be
resolved?  Any chance you can also add a status update for this
problem so we can point users to that page?


[twitter-dev] Re: Problem in past 48 hours: friendships/create severe lag or loss

2009-08-31 Thread Shannon Clark
Not app specific but as a user via the web I am noticing the following
possibly related behaviors:

- new users showing up in my followers list w/o an email being sent

- emails being sent about new followers w/o the follower showing up in my
followers list

- followers i blocked still showing up in my followers list (with one
follower I had to block I think 4 times for it to finally stick)

Shannon


On Mon, Aug 31, 2009 at 11:53 AM, Paul Kinlan paul.kin...@gmail.com wrote:

 Hi,
 I too am seeing a similar issue.  I have had a lot of users say that this
 is occurring even going so far to raise chargebacks against my service.

 I also notice that friendships/create often returns a 200 but the response
 is empty, when normally you get the information about the person being
 followed.  I am ignoring the blank responses for now, but I don't know if
 that is correct as I can't tell if these are followed or not bearing in mind
 that even if user information is returned the user still might not be
 followed.

 Paul

 2009/8/31 PJB pjbmancun...@gmail.com



 Woke up this morning to find that several of our users have written in
 noting that friendship actions taken through our application are not
 working.

 We confirmed this problem, across multiple IPs and multiple different
 apps.  Friendships/create works inconsistently: about 30% of the time
 they work as expected, and the new friends immediately appear in
 friends/ids API call, as well as when logging into Twitter.com and
 looking at the new friends pages (we see following).

 Another 30% appear to be delayed for several hours, during which time
 a call to friends/ids does NOT show new friends' ids (nor on
 Twitter.com).  Another 30% appears to be lost forever (or severely
 lagged).

 All of these friendship creates are returning no errors.

 A search of @twitterapi on Twitter indicates that this is a (fairly)
 widespread problem.

 Can Twitter give us some idea as to when this problem will be
 resolved?  Any chance you can also add a status update for this
 problem so we can point users to that page?





[twitter-dev] Re: Problem in past 48 hours: friendships/create severe lag or loss

2009-08-31 Thread PJB


Thanks Jon... can you let us know if past friendships/create (etc)
calls that haven't yet worked, will eventually work?  Since we
database all of these actions, we're worried that we're going to have
bad data for the past, e.g., 48 hours, unless those non-error calls
actually go through.

On Aug 31, 12:03 pm, John Kalucki jkalu...@gmail.com wrote:
 We're on this. Updates from the usual sources soon.

 On Aug 31, 11:57 am, David Dellanave david.dellan...@gmail.com
 wrote:

  I am pretty sure I am experiencing this issue as well.  I can't verify it,
  yet.  I assumed it was an issue with OAuth, but it seems like that it is the
  same issue.




[twitter-dev] Re: Problem in past 48 hours: friendships/create severe lag or loss

2009-08-31 Thread John Kalucki

The writes are all safely queued. They all should all eventually apply
correctly and consistently.

Keep an eye on the status blog.


On Aug 31, 12:07 pm, PJB pjbmancun...@gmail.com wrote:
 Thanks Jon... can you let us know if past friendships/create (etc)
 calls that haven't yet worked, will eventually work?  Since we
 database all of these actions, we're worried that we're going to have
 bad data for the past, e.g., 48 hours, unless those non-error calls
 actually go through.

 On Aug 31, 12:03 pm, John Kalucki jkalu...@gmail.com wrote:

  We're on this. Updates from the usual sources soon.

  On Aug 31, 11:57 am, David Dellanave david.dellan...@gmail.com
  wrote:

   I am pretty sure I am experiencing this issue as well.  I can't verify it,
   yet.  I assumed it was an issue with OAuth, but it seems like that it is 
   the
   same issue.


[twitter-dev] Re: Number of Tweets in a timeframe

2009-08-31 Thread torontocitylife

Just to add a sprinkle of salt, I haven't explored all the Twitter API
functionality, but I do know of one parameter that's something like
olderthan (or maybe older). This accepts a tweet number (index)
and instructs the API to retrieve updates earlier than this.
Unfortunately this isn't timeframe-based, and still requires you to
grab the top index value in some way (usually by parsing XML data!),
but once you have the index value it should be fairly straightforward.

On Aug 31, 12:12 pm, DMain dominic_m...@yahoo.com.au wrote:
 Hi,

 does anyone know how if it's possible to receive the number of search
 results on a specified timeframe?

 The following url returns all tweets from a day, but I have to parse
 all results (and hope that their number is less than 1500). Also I
 would prefer to have this number on a hourly 
 basis.http://search.twitter.com/search.atom?until=2009-08-26since=2009-08-...

 Any suggestions?
 Thanks Dominic


[twitter-dev] Re: Number of Tweets in a timeframe

2009-08-31 Thread JDG
As far as I know, per-day is the finest grained time-based search you can
do.

On Mon, Aug 31, 2009 at 10:12, DMain dominic_m...@yahoo.com.au wrote:


 Hi,

 does anyone know how if it's possible to receive the number of search
 results on a specified timeframe?

 The following url returns all tweets from a day, but I have to parse
 all results (and hope that their number is less than 1500). Also I
 would prefer to have this number on a hourly basis.

 http://search.twitter.com/search.atom?until=2009-08-26since=2009-08-26q=iphone

 Any suggestions?
 Thanks Dominic




-- 
Internets. Serious business.


[twitter-dev] Search only who you follow?

2009-08-31 Thread Shannon Clark
Perhaps I have missed it (I have looked) but is there is a way to search
ONLY the tweets from people whom a user of your service follows? i.e. after
OAuth then search all the tweets from folks whom they are following -
including @reply's and accounts who are set private? Ideally as far into the
past as the API's will allow access but limited to a time period would be
useful as well.

As best I can tell the search API isn't authenticated and is against only
public tweets.

Have I missed a functionality?

If not, is anything like this planned for a future API? (before I start
building the tools to handle it via more manual processes myself - i.e. for
authenticated users get all the tweets from everyone the follow over time
and build my own search engine against that dataset)

Shannon


[twitter-dev] Re: Website!

2009-08-31 Thread Abraham Williams
There is a Twitter Drupal module that does not support OAuth or Sign in with
Twitter yet.
http://drupal.org/project/twitter

If you check the issue queue those are both planned features.

There is also a lightweight Sign in with Twitter module that I wrote:

http://github.com/abraham/sign-in-with-twitter

Abraham

On Mon, Aug 31, 2009 at 00:16, priteshdesai iampriteshde...@gmail.comwrote:


 I want to make a website closely tied with Twitter. I want users to
 signin, using Oauth. People can import there tweets on this site and
 also comment on others tweets.
 How can I make such a website?
 I would like to use Drupal to do it..
 Any ideas?




-- 
Abraham Williams | Community Evangelist | http://web608.org
Hacker | http://abrah.am | http://twitter.com/abraham
Project | http://fireeagle.labs.poseurtech.com
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Madison, WI, United States


[twitter-dev] Re: track syntax

2009-08-31 Thread John Kalucki

You can set both the track and follow parameters when using the /1/
statuses/filter URL.

Best practices around changing your predicate:
http://apiwiki.twitter.com/Streaming-API-Documentation#UpdatingFilterPredicates

I can't answer PHP questions, sorry.

-John Kalucki
http://twitter.com/jkalucki
Services, Twitter Inc.


On Aug 31, 12:32 pm, Polymatheus world.mo...@gmail.com wrote:
 I've used the code above to start streaming and then dumping the
 output to a text file every hour to process later. There are a few
 things I want to clarify,

 1) How can the above script be amended to show both follow and track?
 Is this possible?
 2) If I opened a stream to follow 10 users and then a further 5 users
 joined my site, would I have to close the first stream then open a new
 stream for the 15 follows? Or just a second stream with the additional
 5 users? The second approach reduce the chance of tweets being lost
 between closing and opening a new stream.
 3) I can't seem to close a stream that I opened using the sample code
 above, I have tried changing the file to simply say:

 $fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 10);
 fclose($fp);

 But it doesn't appear to work :/

 Thanks in advance

 On 10 Aug, 08:09, Joel Strellner j...@twitturly.com wrote:

  Tom,

  Yes, that code works perfectly for me exactly as is.  You might want to
  change the connect timeout from 10 to 30 seconds.

  How long are you waiting before calling it quits?  It does take a few
  seconds for /track to start sending your results.

  -Joel

  On Sun, Aug 9, 2009 at 8:17 PM, Tom Fitzgerald ccexpe...@gmail.com wrote:

   I'm sorry Joel I keep getting a PHP timeout on the code you sent. I'll
   troubleshoot more and see if I can give you any more details (increase
   the maximum time, etc). Who knows, maybe its Twitter. Any other
   thoughts? I'll get back to you more with some detailed info. Are you
   able to get that exact code working on your server?

   On Aug 3, 2:12 pm, Joel Strellner j...@twitturly.com wrote:
Hi Tom,

I am not sure about XML, since I use JSON - it has a much lower
over-the-wire data size, and its easier to parse.

Let me know if the code works for you.

-Joel

On Mon, Aug 3, 2009 at 10:55 AM, Tom Fitzgerald ccexpe...@gmail.com
   wrote:

 I appreciate the reply Joel. I'll give it a try. I also tried just
 downloading from the stream api with the curl command line. However I
 kept getting 'malformed xml' errors. It was weird, each tweet would
 have the ?xml ... tag before it. That ring any bells with you? Same
 thing with JSON format but it was a different error, still malformed.
 All I'm doing is

 curlhttp://stream.twitter.com/spritzer.xml-uuser:pass

 ?xml version=1.0 encoding=UTF-8? is the exact line I get before
 every status. If I manually clean up the XML (or JSON) it works great.

 On Aug 2, 7:10 pm, Joel Strellner j...@twitturly.com wrote:
  Other than my username and password, this is an example that I know
   is
  working:

  ?php
  $count = 1;
  $startparsing = false;

  $keyword_needles[] = 'twitter';
  $keyword_needles[] = 'keyword2';
  $keyword_needles[] = 'keyword3';
  $keyword_needles[] = 'keyword4';

  // if your keywords have spaces, they must be urlencoded (twitter
   does
  not support phrases, only the first keyword will be used, the space
  character and after will be ignored)
  foreach ($keyword_needles AS $i=$needle) {
      $keyword_needles[$i] = urlencode($needle);

  }

  $poststr = 'track=' . implode(',', $keyword_needles);
  $fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 10);
  if (!$fp) {
      echo $errstr ($errno)\n;

  } else {

      $out = POST /track.json HTTP/1.1\r\n;
      $out .= Host: stream.twitter.com\r\n;
      $out .= User-Agent: YourUserAgent\r\n;
      $out .= Referer:http://yourdomain.com\r\n;;
      $out .= Content-Type: application/x-www-form-urlencoded\r\n;
      $out .= Authorization: Basic  . base64_encode
  (username:password).\r\n;
      $out .= Content-length:  . strlen($poststr) . \r\n;
      $out .= Connection: Close\r\n\r\n;
      $out .= $poststr . \r\n\r\n;

      fwrite($fp, $out);
      while (!feof($fp)) {
          $line = fgets($fp, 4096);
          if ($startparsing) {
              if (trim($line) != '') {
                  echo trim($line) . \n;
                  $tweet_obj = json_decode(trim($line));
                  // do your stuff here
              }
          }
          else {
              // view the header lines: uncomment the below line
              echo trim($line) . \n;

              $header_arr[] = $line;
              $headercount = count($header_arr)-1;

              if (trim($header_arr[$headercount]) == '') {
                  $startparsing = true;
   

[twitter-dev] Re: Using Twitter API by Nick Beam

2009-08-31 Thread Andrew Badera
TEXT AVALANCHE! RUN!

∞ Andy Badera
∞ This email is: [ ] bloggable [x] ask first [ ] private
∞ Google me: http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)



On Mon, Aug 31, 2009 at 3:27 PM, Pjpravee...@gmail.com wrote:

 Can anyone please assist me on how to use/call this API functions with
 php?

 I tried
 ?php

 require(new.class.php);

 $twitter = new Twitter(, );

 $msg = $twitter-getMessages(xml);

 echo pre. $msg. /pre;

 ?

 And something weird displayed..
 thanks in advance.

 //new.class.php\\
 ?php
 /**
  * Twitter interface class
  * Nov 26 2007 Nick Beam
  * Bugs, comments, questions: winkerb...@gmail.com
  * http://rbrw.net -- http://tinydinosaur.com
  *
  * This is a simple interface to the Twitter API.
  * I've tried to keep as close as possible to the real API
  *   calls (some had to be changed due to ambiguity), but all
  *   of the arguments are as they are in the official docs.
  *
  * Usage:
  *  $twitter = new Twitter(username, password);
  *  $public_timeline_xml = $twitter-getPublicTimeline(xml);
  *
  * Methods:
  *  getPublicTimeline($format [, $since_id])
  *  getFriendsTimeline($format [, $id [, $since ]])
  *  getUserTimeline($format [, $id [, $count [, $since ]]])
  *  showStatus($format, $id)
  *  updateStatus($status)
  *  destroyStatus($format, $id)
  *  getReplies($format [, $page ])
  *  getFriends($format [, $id ])
  *  getFollowers($format [, $lite ])
  *  getFeatured($format)
  *  showUser($format [, $id [, $email ]])
  *  getMessages($format [, $since [, $since_id [, $page ]]])
  *  getSentMessages($format [, $since [, $since_id [, $page ]]])
  *  newMessage($format, $user, $text)
  *  destroyMessage($format, $id)
  *  createFriendship($format, $id)
  *  destroyFriendship($format, $id)
  *  verifyCredentials([$format])
  *  endSession()
  *  getArchive($format [, $page ])
  *  getFavorites($format [, $id [, $page ]])
  *  createFavorite($format, $id)
  *  destroyFavorite($format, $id)
  *  lastStatusCode()
  *  lastAPICall()
  */

 class Twitter {
        /* Username:password format string */
        private $credentials;

        /* Contains the last HTTP status code returned */
        private $http_status;

        /* Contains the last API call */
        private $last_api_call;

        /* Twitter class constructor */
        function Twitter($username, $password) {
                $this-credentials = sprintf(%s:%s, $username, $password);
        }

        function getPublicTimeline($format, $since_id = 0) {
                $api_call = 
 sprintf(http://twitter.com/statuses/public_timeline.
 %s, $format);
                if ($since_id  0) {
                        $api_call .= sprintf(?since_id=%d, $since_id);
                }
                return $this-APICall($api_call);
        }

        function getFriendsTimeline($format, $id = NULL, $since = NULL) {
                if ($id != NULL) {
                        $api_call = 
 sprintf(http://twitter.com/statuses/friends_timeline/
 %s.%s, $id, $format);
                }
                else {
                        $api_call = 
 sprintf(http://twitter.com/statuses/friends_timeline.
 %s, $format);
                }
                if ($since != NULL) {
                        $api_call .= sprintf(?since=%s, urlencode($since));
                }
                return $this-APICall($api_call, true);
        }

        function getUserTimeline($format, $id = NULL, $count = 20, $since =
 NULL) {
                if ($id != NULL) {
                        $api_call = 
 sprintf(http://twitter.com/statuses/user_timeline/%s.
 %s, $id, $format);
                }
                else {
                        $api_call = 
 sprintf(http://twitter.com/statuses/user_timeline.%s;,
 $format);
                }
                if ($count != 20) {
                        $api_call .= sprintf(?count=%d, $count);
                }
                if ($since != NULL) {
                        $api_call .= sprintf(%ssince=%s, (strpos($api_call, 
 ?count=)
 === false) ? ? : , urlencode($since));
                }
                return $this-APICall($api_call, true);
        }

        function showStatus($format, $id) {
                $api_call = sprintf(http://twitter.com/statuses/show/%d.%s;, 
 $id,
 $format);
                return $this-APICall($api_call);
        }

        function updateStatus($status) {
                $status = urlencode(stripslashes(urldecode($status)));
                $api_call = 
 sprintf(http://twitter.com/statuses/update.xml?status=
 %s, $status);
                return $this-APICall($api_call, true, true);
        }

        function getReplies($format, $page = 0) {
                $api_call = sprintf(http://twitter.com/statuses/replies.%s;,
 $format);
                if ($page) {
                        $api_call .= sprintf(?page=%d, $page);
                }
                return $this-APICall($api_call, true);
        }

    

[twitter-dev] Re: Problem in past 48 hours: friendships/create severe lag or loss

2009-08-31 Thread Ben Eliott


Thank-you, good to know.

On 31 Aug 2009, at 20:03, John Kalucki wrote:



We're on this. Updates from the usual sources soon.

On Aug 31, 11:57 am, David Dellanave david.dellan...@gmail.com
wrote:
I am pretty sure I am experiencing this issue as well.  I can't  
verify it,
yet.  I assumed it was an issue with OAuth, but it seems like that  
it is the

same issue.




[twitter-dev] Re: Using Twitter API by Nick Beam

2009-08-31 Thread Chris Babcock

Paste Bin - pastebin.com - is our friend.

Chris


On Mon, 31 Aug 2009 16:17:55 -0400
Andrew Badera and...@badera.us wrote:

 TEXT AVALANCHE! RUN!
 
 ∞ Andy Badera
 ∞ This email is: [ ] bloggable [x] ask first [ ] private
 ∞ Google me:
 http://www.google.com/search?q=(andrew+badera)+OR+(andy+badera)
 
 
 
 On Mon, Aug 31, 2009 at 3:27 PM, Pjpravee...@gmail.com wrote:
 
  Can anyone please assist me on how to use/call this API functions
  with php?
 
  I tried
  ?php
 
  require(new.class.php);
 
  $twitter = new Twitter(, );
 
  $msg = $twitter-getMessages(xml);
 
  echo pre. $msg. /pre;
 
  ?
 
  And something weird displayed..
  thanks in advance.
 
  //new.class.php\\
  ?php
  /**
   * Twitter interface class
   * Nov 26 2007 Nick Beam
   * Bugs, comments, questions: winkerb...@gmail.com
   * http://rbrw.net -- http://tinydinosaur.com
   *
   * This is a simple interface to the Twitter API.
   * I've tried to keep as close as possible to the real API
   *   calls (some had to be changed due to ambiguity), but all
   *   of the arguments are as they are in the official docs.
   *
   * Usage:
   *  $twitter = new Twitter(username, password);
   *  $public_timeline_xml = $twitter-getPublicTimeline(xml);
   *
   * Methods:
   *  getPublicTimeline($format [, $since_id])
   *  getFriendsTimeline($format [, $id [, $since ]])
   *  getUserTimeline($format [, $id [, $count [, $since ]]])
   *  showStatus($format, $id)
   *  updateStatus($status)
   *  destroyStatus($format, $id)
   *  getReplies($format [, $page ])
   *  getFriends($format [, $id ])
   *  getFollowers($format [, $lite ])
   *  getFeatured($format)
   *  showUser($format [, $id [, $email ]])
   *  getMessages($format [, $since [, $since_id [, $page ]]])
   *  getSentMessages($format [, $since [, $since_id [, $page ]]])
   *  newMessage($format, $user, $text)
   *  destroyMessage($format, $id)
   *  createFriendship($format, $id)
   *  destroyFriendship($format, $id)
   *  verifyCredentials([$format])
   *  endSession()
   *  getArchive($format [, $page ])
   *  getFavorites($format [, $id [, $page ]])
   *  createFavorite($format, $id)
   *  destroyFavorite($format, $id)
   *  lastStatusCode()
   *  lastAPICall()
   */
 
  class Twitter {
         /* Username:password format string */
         private $credentials;
 
         /* Contains the last HTTP status code returned */
         private $http_status;
 
         /* Contains the last API call */
         private $last_api_call;
 
         /* Twitter class constructor */
         function Twitter($username, $password) {
                 $this-credentials = sprintf(%s:%s, $username,
  $password); }
 
         function getPublicTimeline($format, $since_id = 0) {
                 $api_call =
  sprintf(http://twitter.com/statuses/public_timeline. %s, $format);
                 if ($since_id  0) {
                         $api_call .= sprintf(?since_id=%d,
  $since_id); }
                 return $this-APICall($api_call);
         }
 
         function getFriendsTimeline($format, $id = NULL, $since =
  NULL) { if ($id != NULL) {
                         $api_call =
  sprintf(http://twitter.com/statuses/friends_timeline/ %s.%s, $id,
  $format); }
                 else {
                         $api_call =
  sprintf(http://twitter.com/statuses/friends_timeline. %s,
  $format); }
                 if ($since != NULL) {
                         $api_call .= sprintf(?since=%s,
  urlencode($since)); }
                 return $this-APICall($api_call, true);
         }
 
         function getUserTimeline($format, $id = NULL, $count = 20,
  $since = NULL) {
                 if ($id != NULL) {
                         $api_call =
  sprintf(http://twitter.com/statuses/user_timeline/%s. %s, $id,
  $format); }
                 else {
                         $api_call =
  sprintf(http://twitter.com/statuses/user_timeline.%s;, $format);
                 }
                 if ($count != 20) {
                         $api_call .= sprintf(?count=%d, $count);
                 }
                 if ($since != NULL) {
                         $api_call .= sprintf(%ssince=%s,
  (strpos($api_call, ?count=) === false) ? ? : ,
  urlencode($since)); }
                 return $this-APICall($api_call, true);
         }
 
         function showStatus($format, $id) {
                 $api_call =
  sprintf(http://twitter.com/statuses/show/%d.%s;, $id, $format);
                 return $this-APICall($api_call);
         }
 
         function updateStatus($status) {
                 $status =
  urlencode(stripslashes(urldecode($status))); $api_call =
  sprintf(http://twitter.com/statuses/update.xml?status= %s,
  $status); return $this-APICall($api_call, true, true);
         }
 
         function getReplies($format, $page = 0) {
                 $api_call =
  sprintf(http://twitter.com/statuses/replies.%s;, $format);
                 if ($page) {
                         

[twitter-dev] Re: Website!

2009-08-31 Thread Joseph Cheek

shameless_plug

And mine, www.cheek.com/downloads/Twitter_Auth

/shameless_plug

Abraham Williams wrote:
 There is a Twitter Drupal module that does not support OAuth or Sign
 in with Twitter yet.

 http://drupal.org/project/twitter

 If you check the issue queue those are both planned features. 

 There is also a lightweight Sign in with Twitter module that I wrote:

 http://github.com/abraham/sign-in-with-twitter

 Abraham

 On Mon, Aug 31, 2009 at 00:16, priteshdesai iampriteshde...@gmail.com
 mailto:iampriteshde...@gmail.com wrote:


 I want to make a website closely tied with Twitter. I want users to
 signin, using Oauth. People can import there tweets on this site and
 also comment on others tweets.
 How can I make such a website?
 I would like to use Drupal to do it..
 Any ideas?




 -- 
 Abraham Williams | Community Evangelist | http://web608.org
 Hacker | http://abrah.am | http://twitter.com/abraham
 Project | http://fireeagle.labs.poseurtech.com
 This email is: [ ] blogable [x] ask first [ ] private.
 Sent from Madison, WI, United States

-- 
Joseph Cheek
jos...@cheek.com, www.cheek.com
twitter: http://twitter.com/cheekdotcom



[twitter-dev] Re: track syntax

2009-08-31 Thread Joseph Cheek

are you really just opening stream.twitter.org?  Normally you would want
to open http://stream.twitter.org/path/to/url.xml...

Joseph Cheek
jos...@cheek.com, www.cheek.com
twitter: http://twitter.com/cheekdotcom



John Kalucki wrote:
 You can set both the track and follow parameters when using the /1/
 statuses/filter URL.

 Best practices around changing your predicate:
 http://apiwiki.twitter.com/Streaming-API-Documentation#UpdatingFilterPredicates

 I can't answer PHP questions, sorry.

 -John Kalucki
 http://twitter.com/jkalucki
 Services, Twitter Inc.


 On Aug 31, 12:32 pm, Polymatheus world.mo...@gmail.com wrote:
   
 I've used the code above to start streaming and then dumping the
 output to a text file every hour to process later. There are a few
 things I want to clarify,

 1) How can the above script be amended to show both follow and track?
 Is this possible?
 2) If I opened a stream to follow 10 users and then a further 5 users
 joined my site, would I have to close the first stream then open a new
 stream for the 15 follows? Or just a second stream with the additional
 5 users? The second approach reduce the chance of tweets being lost
 between closing and opening a new stream.
 3) I can't seem to close a stream that I opened using the sample code
 above, I have tried changing the file to simply say:

 $fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 10);
 fclose($fp);

 But it doesn't appear to work :/

 Thanks in advance

 



[twitter-dev] Re: track syntax

2009-08-31 Thread Joel Strellner
Hi Polymatheus,

1) How can the above script be amended to show both follow and track?
 Is this possible?

John's suggestion is the only way, you must use the new paths.

2) If I opened a stream to follow 10 users and then a further 5 users
 joined my site, would I have to close the first stream then open a new
 stream for the 15 follows? Or just a second stream with the additional
 5 users? The second approach reduce the chance of tweets being lost
 between closing and opening a new stream.

You must restart the stream, unfortunately, there is no way around this at
this point.

3) I can't seem to close a stream that I opened using the sample code

Abraham gives a potential solution to this, and I believe its along the
right path.  I normally only see this if we are lagging behind for whatever
reason.

Let me know if you have any further questions, since I am the person that
wrote the code you're using.

-Joel


On Mon, Aug 31, 2009 at 12:32 PM, Polymatheus world.mo...@gmail.com wrote:


 I've used the code above to start streaming and then dumping the
 output to a text file every hour to process later. There are a few
 things I want to clarify,

 1) How can the above script be amended to show both follow and track?
 Is this possible?
 2) If I opened a stream to follow 10 users and then a further 5 users
 joined my site, would I have to close the first stream then open a new
 stream for the 15 follows? Or just a second stream with the additional
 5 users? The second approach reduce the chance of tweets being lost
 between closing and opening a new stream.
 3) I can't seem to close a stream that I opened using the sample code
 above, I have tried changing the file to simply say:


 $fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 10);
 fclose($fp);

 But it doesn't appear to work :/

 Thanks in advance

 On 10 Aug, 08:09, Joel Strellner j...@twitturly.com wrote:
  Tom,
 
  Yes, that code works perfectly for me exactly as is.  You might want to
  change the connect timeout from 10 to 30 seconds.
 
  How long are you waiting before calling it quits?  It does take a few
  seconds for /track to start sending your results.
 
  -Joel
 
 
 
  On Sun, Aug 9, 2009 at 8:17 PM, Tom Fitzgerald ccexpe...@gmail.com
 wrote:
 
   I'm sorry Joel I keep getting a PHP timeout on the code you sent. I'll
   troubleshoot more and see if I can give you any more details (increase
   the maximum time, etc). Who knows, maybe its Twitter. Any other
   thoughts? I'll get back to you more with some detailed info. Are you
   able to get that exact code working on your server?
 
   On Aug 3, 2:12 pm, Joel Strellner j...@twitturly.com wrote:
Hi Tom,
 
I am not sure about XML, since I use JSON - it has a much lower
over-the-wire data size, and its easier to parse.
 
Let me know if the code works for you.
 
-Joel
 
On Mon, Aug 3, 2009 at 10:55 AM, Tom Fitzgerald ccexpe...@gmail.com
 
   wrote:
 
 I appreciate the reply Joel. I'll give it a try. I also tried just
 downloading from the stream api with the curl command line. However
 I
 kept getting 'malformed xml' errors. It was weird, each tweet would
 have the ?xml ... tag before it. That ring any bells with you?
 Same
 thing with JSON format but it was a different error, still
 malformed.
 All I'm doing is
 
 curlhttp://stream.twitter.com/spritzer.xml-uuser:pass
 
 ?xml version=1.0 encoding=UTF-8? is the exact line I get
 before
 every status. If I manually clean up the XML (or JSON) it works
 great.
 
 On Aug 2, 7:10 pm, Joel Strellner j...@twitturly.com wrote:
  Other than my username and password, this is an example that I
 know
   is
  working:
 
  ?php
  $count = 1;
  $startparsing = false;
 
  $keyword_needles[] = 'twitter';
  $keyword_needles[] = 'keyword2';
  $keyword_needles[] = 'keyword3';
  $keyword_needles[] = 'keyword4';
 
  // if your keywords have spaces, they must be urlencoded (twitter
   does
  not support phrases, only the first keyword will be used, the
 space
  character and after will be ignored)
  foreach ($keyword_needles AS $i=$needle) {
  $keyword_needles[$i] = urlencode($needle);
 
  }
 
  $poststr = 'track=' . implode(',', $keyword_needles);
  $fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 10);
  if (!$fp) {
  echo $errstr ($errno)\n;
 
  } else {
 
  $out = POST /track.json HTTP/1.1\r\n;
  $out .= Host: stream.twitter.com\r\n;
  $out .= User-Agent: YourUserAgent\r\n;
  $out .= Referer:http://yourdomain.com\r\n;;
  $out .= Content-Type:
 application/x-www-form-urlencoded\r\n;
  $out .= Authorization: Basic  . base64_encode
  (username:password).\r\n;
  $out .= Content-length:  . strlen($poststr) . \r\n;
  $out .= Connection: Close\r\n\r\n;
  $out .= $poststr . \r\n\r\n;
 
  fwrite($fp, $out);
  while 

[twitter-dev] Re: track syntax

2009-08-31 Thread Joel Strellner
If he really is using only those two lines, then yes, it explains some of
his error.  The header lines are what tells the server what page you're
looking for on stream.twitter.com.

-Joel

On Mon, Aug 31, 2009 at 1:33 PM, Joseph Cheek jos...@cheek.com wrote:


 are you really just opening stream.twitter.org?  Normally you would want
 to open http://stream.twitter.org/path/to/url.xml...

 Joseph Cheek
 jos...@cheek.com, www.cheek.com
 twitter: http://twitter.com/cheekdotcom



 John Kalucki wrote:
  You can set both the track and follow parameters when using the /1/
  statuses/filter URL.
 
  Best practices around changing your predicate:
 
 http://apiwiki.twitter.com/Streaming-API-Documentation#UpdatingFilterPredicates
 
  I can't answer PHP questions, sorry.
 
  -John Kalucki
  http://twitter.com/jkalucki
  Services, Twitter Inc.
 
 
  On Aug 31, 12:32 pm, Polymatheus world.mo...@gmail.com wrote:
 
  I've used the code above to start streaming and then dumping the
  output to a text file every hour to process later. There are a few
  things I want to clarify,
 
  1) How can the above script be amended to show both follow and track?
  Is this possible?
  2) If I opened a stream to follow 10 users and then a further 5 users
  joined my site, would I have to close the first stream then open a new
  stream for the 15 follows? Or just a second stream with the additional
  5 users? The second approach reduce the chance of tweets being lost
  between closing and opening a new stream.
  3) I can't seem to close a stream that I opened using the sample code
  above, I have tried changing the file to simply say:
 
  $fp = fsockopen(stream.twitter.com, 80, $errno, $errstr, 10);
  fclose($fp);
 
  But it doesn't appear to work :/
 
  Thanks in advance
 
 




[twitter-dev] Delete a Direct Message

2009-08-31 Thread Pj

How to Delete a Direct message in PHP
this is my script:

function deleteDirectMessage($id)
{
if (!is_numeric($id)) {
return false;
}
$request = 
'http://twitter.com/direct_messages/destroy/'.$id.'.xml';


return $this-process($request);
}

I found out that the request must be passed as a HTTP request (POST /
DELETE) How to do this?

thanks


[twitter-dev] Whitelist DM limit Question

2009-08-31 Thread Matthew

I'm developing an application and I need to find out how the DM limit
will work if I get it Whitelisted.

Does the expanded DM limit for whitelisted applications only apply to
DM's directly from the account associated with the application that
has been whitelisted, or does it apply to an account that uses my
application?

For example if my application is linked to my account named
MyDmAccount and a user with an account called SomeUser uses my
application to send DMs. Can SomeUser send an increased amount of DMs
through my application, or does the allowed increase in DMs only apply
to DMs send directly from MyDmAccount?

Trying to design this application to stay within the lines and need to
figure this out before moving forward.

Thanks,

Matt