[twitter-dev] How to query for a single status ID?

2011-05-16 Thread MyGradThesis
Hello Twitterati!!!

I'm writing a Twitter feed tool to help me complete my grad thesis
(would be happy to share it, this is non-commercial) and the one
problem I have now is how do I get a single, historical status
returned to me in json format?  If someone could reply with the get
syntax for getting a single status that would be great. I found a get
command for direct messages, but these are just plain old statuses
that I need, so the direct message get does not work for me (i.e. GET /
1/direct_messages/show/:id.{format} )

And if anyone from Twitter is out there listening, the crazy limit you
put on from: search queries is why I need an individual status get.
Why do so few records get returned with a from: query? Are you folks
worried someone will make a copycat site using from:?  This limit is
making it really hard to finish my research.  I am comparing all the
tweets from 60 users with the mentions of those tweets in the greater
community. I can search the last few days of cached data just fine for
the mentions (searching on @users) but I get almost nothing back when
I search with from:. The from: results in some cases include only
1 day of data. So I am continually missing out on the original status
message, while I can see everyone's response to the message with no
problem.  The from: limit is really painful. Can you help me out? I
would really like to graduate while I am still young.  For now I can
manually look up each status I miss, so how do I get the status (in
JSON, I don't want to scrape the author's page, which I guess would be
my fall back approach)

Thanks!
Jim Skinner
Santa Clara University

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


[twitter-dev] Issue - My twitter account won't load

2011-05-16 Thread Carla Gasparian Sartori
I have already tried to load my account @carlagasparian in several
computers and in differentes IPs and it won't load since fryday the
13th. The page appears as if it were blank. My computer manged to load
my settings, but not my timeline. My tweetdeck is working, but it says
that there has been an error envolving the API.
I wonder if this has to do with the stability issues that twitter was
experiencing on fryday - maybe these issues weren't fixed completely.

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


[twitter-dev] AppleScript example for Twitter 2.1?

2011-05-16 Thread Joost Schuur
Are there any examples of AppleScript being used in conjunction with
the new Twitter 2.1 client for the Mac? I have an idea for a small
script, but don't know how to go about starting to use the new
support.

I've been looking at the AppleScript dictionary for the Twitter app in
Script Editor, specifically to see if I can isolate the current active
cell in the current window, and extract the tweet text. What I'd like
to do is take that status and fire it over to Google Translate, so
that I can create a hotkey (via a third party app like FastScripts) to
translate any tweet in a foreign language.

I see AppleScript hooks for getting windows and looking at the stream,
but I'm not sure if I can identify the current cell and get the tweet
text from it.

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


Re: [twitter-dev] Re: problem with site stream oauth

2011-05-16 Thread Taylor Singletary
oauth_body_hash isn't official OAuth 1.0a and you should not be including it
in your signature base string, POST parameters, authorization header, or
otherwise.  While it may not be causing your problem, it also might not be
helping.

It's best for you to use authorization headers instead of using query
parameters or the POST body to send the oauth_* parameters -- it separates
concerns dramatically.

To David's point, have you been granted access to the site streams beta?
Have you examined the message attached with the 401 -- what does that
message say?

@episod http://twitter.com/episod - Taylor Singletary


On Sun, May 15, 2011 at 4:53 PM, David dtran...@gmail.com wrote:

 HI Michael,

 The Site Streams endpoint is currently in beta and only available to
 whitelisted users - has your app account @username been approved?

 Best,
 David

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


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


[twitter-dev] Re: Twitter Search API - Questions Regarding Scaling Out

2011-05-16 Thread Corey Ballou
Thanks for the feedback Brian. Late response here, but I'd be more
than willing to provide you with more details regarding our
application in a private email. You should be receiving said email
shortly.

Regards,

Corey

On Apr 14, 1:12 pm, Brian Sutorius bsutor...@twitter.com wrote:
 While the Streaming API may not provide processed results to you in
 the way that search queries can (logical ORs, etc.), it's a more
 scalable solution for returning a lot of Tweets. Our search system can
 rate limit queries if they become too computationally expensive (in
 addition to the normal query limit), so continuing to add parameters
 to the query up front rather than doing this processing yourself may
 cause you to keep running into limits. Ultimately, circumventing the
 limits put in place by our APIs is not allowed by our API ToS, and
 building your architecture this way just to get around the defaults is
 something we strongly discourage. If you keep being rate limited, you
 should think about re-factoring your prioritization strategy.

 Can you go into a little more detail about what your application does?
 We might be able to guide you towards a mix of Streaming API and
 search queries that gets you what you need but stays within the rate
 limits.

 Brian Sutorius
 Twitter API Policy

 On Apr 13, 10:28 am, Corey Ballou ball...@gmail.com wrote:







  I'm still looking for a community leader answer on this one.

  On Apr 11, 5:50 pm, Corey Ballou ball...@gmail.com wrote:

   Thanks for the reply, I appreciate it.

   I have concerns regarding the streaming APIs, which mainly concern the
   following:

   * usage of logical OR when using locations
   * firehose limitations
   * the user’s location field is not used to filter tweets
   * increased application complexity for parsing the resulting stream of
   data back out into individual searches

   I know that the Search API is not Twitter's preferred choice, but it's
   currently returning the best applicable results for my application.
   It's also worth noting that the API recently received a drastic
   improvement to speed which should theoretically relax the strain on
   the API:

  http://engineering.twitter.com/2011/04/twitter-search-is-now-3x-faste...

   I guess I'm mainly interested in knowing whether @twitterapi will
   allow me to use the Search API in the manner I indicated above?
   Essentially I would be willing to guarantee the application worker
   nodes handles 420 rate limiting errors accordingly while still
   supporting multiple twitter accounts and searches.

   On Apr 11, 1:05 pm, M. Edward (Ed) Borasky zn...@borasky-

   research.net wrote:
I don't see an answer here, but I'll tell you how *I* would go about
implementing this:

1. Switch to the Streaming API. Using Search in an application puts a 
strain
on Twitter's servers and makes it difficult to Twitter to manage 
capacity.
That's why it's rate-limited and why the rate limits aren't publicly
disclosed.

2. If your application is a desktop application, use User Streams. If 
it is
a server, use User Streams on a desktop or the low-frequency free 
access to
Streaming on a server to prototype and develop. Your target for a server
will be Site Streams, but that's in closed beta at the moment IIRC.

3. *Concurrently with development*, your business development / sales /
marketing / planning people, or yourself, if it's a one-person shop, 
should
be negotiating with Twitter for access to Site Streams, I'm assuming an
agile development methodology - customer-in-the-loop - and one of the
parties that needs to be in the loop is Twitter for Site Streams. You 
simply
*can't* build an at-scale Twitter application without direct business
discussions with Twitter!

On Mon, Apr 11, 2011 at 8:14 AM, Corey Ballou ball...@gmail.com wrote:
 I tried speaking with Ryan Sarver directly, but he's forwarding me
 here to the community advocates to answer. I believe this answer will
 need to come top down from Twitter, as it's your rate limiting that
 I'm most worried about.

 I have a technical question for all of you in regards to the Search
 API as I want to maintain full compliancy. Currently, the old Search
 API implementation (albeit slower) provides a fuller result set and
 allows for more flexibility in the types and combinations of searches
 allowed. The manner I have developed my application would allow for a
 number of daemonized worker instances running on different IP
 addresses to make calls to the search API on behalf of the stored
 OAuth credentials to avoid rate limiting issues.

 I had a conversation with the Pluggio developer in which he stated
 Twitter had threatened to shutdown his application if he didn't switch
 to a different implementation of the Search API. The problem indicated
 was that he was performing searches for 

Re: [twitter-dev] How to query for a single status ID?

2011-05-16 Thread Damon Parker

This is from a PHP app I built using a the the twitter-async class:
 $tweet = $twob-get('/statuses/show/'.$tw_id.'.json?include_entities=true');

Whatever language you are using, the url you are looking for is:

'/statuses/show/'.$tw_id.'.json?include_entities=true'


Documentation:
http://dev.twitter.com/doc/get/statuses/show/:id



-- 
damonp

On Sunday, May 15, 2011 at 8:30 PM, MyGradThesis wrote: 
 Hello Twitterati!!!
 
 I'm writing a Twitter feed tool to help me complete my grad thesis
 (would be happy to share it, this is non-commercial) and the one
 problem I have now is how do I get a single, historical status
 returned to me in json format? If someone could reply with the get
 syntax for getting a single status that would be great. I found a get
 command for direct messages, but these are just plain old statuses
 that I need, so the direct message get does not work for me (i.e. GET /
 1/direct_messages/show/:id.{format} )
 
 And if anyone from Twitter is out there listening, the crazy limit you
 put on from: search queries is why I need an individual status get.
 Why do so few records get returned with a from: query? Are you folks
 worried someone will make a copycat site using from:? This limit is
 making it really hard to finish my research. I am comparing all the
 tweets from 60 users with the mentions of those tweets in the greater
 community. I can search the last few days of cached data just fine for
 the mentions (searching on @users) but I get almost nothing back when
 I search with from:. The from: results in some cases include only
 1 day of data. So I am continually missing out on the original status
 message, while I can see everyone's response to the message with no
 problem. The from: limit is really painful. Can you help me out? I
 would really like to graduate while I am still young. For now I can
 manually look up each status I miss, so how do I get the status (in
 JSON, I don't want to scrape the author's page, which I guess would be
 my fall back approach)
 
 Thanks!
 Jim Skinner
 Santa Clara University
 
 -- 
 Twitter developer documentation and resources: https://dev.twitter.com/doc
 API updates via Twitter: https://twitter.com/twitterapi
 Issues/Enhancements Tracker: https://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 https://groups.google.com/forum/#!forum/twitter-development-talk
 

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


Re: [twitter-dev] How to query for a single status ID?

2011-05-16 Thread Taylor Singletary
Also, if you're looking for tweets by a specific user, it's much better to
browse their user timeline directly rather than using the Search API (which
only goes back a few days):

http://dev.twitter.com/doc/get/statuses/user_timeline

Example invocation:
GET
http://api.twitter.com/1/statuses/user_timeline.json?include_entities=trueinclude_rts=truecount=100screen_name=twitterapi


@episod http://twitter.com/episod - Taylor Singletary


On Mon, May 16, 2011 at 7:53 AM, Damon Parker cartmet...@gmail.com wrote:


 This is from a PHP app I built using a the the twitter-async class:
  $tweet =
 $twob-get('/statuses/show/'.$tw_id.'.json?include_entities=true');

 Whatever language you are using, the url you are looking for is:

 '/statuses/show/'.$tw_id.'.json?include_entities=true'


 Documentation:
 http://dev.twitter.com/doc/get/statuses/show/:id



 --
 damonp

 On Sunday, May 15, 2011 at 8:30 PM, MyGradThesis wrote:

 Hello Twitterati!!!

 I'm writing a Twitter feed tool to help me complete my grad thesis
 (would be happy to share it, this is non-commercial) and the one
 problem I have now is how do I get a single, historical status
 returned to me in json format? If someone could reply with the get
 syntax for getting a single status that would be great. I found a get
 command for direct messages, but these are just plain old statuses
 that I need, so the direct message get does not work for me (i.e. GET /
 1/direct_messages/show/:id.{format} )

 And if anyone from Twitter is out there listening, the crazy limit you
 put on from: search queries is why I need an individual status get.
 Why do so few records get returned with a from: query? Are you folks
 worried someone will make a copycat site using from:? This limit is
 making it really hard to finish my research. I am comparing all the
 tweets from 60 users with the mentions of those tweets in the greater
 community. I can search the last few days of cached data just fine for
 the mentions (searching on @users) but I get almost nothing back when
 I search with from:. The from: results in some cases include only
 1 day of data. So I am continually missing out on the original status
 message, while I can see everyone's response to the message with no
 problem. The from: limit is really painful. Can you help me out? I
 would really like to graduate while I am still young. For now I can
 manually look up each status I miss, so how do I get the status (in
 JSON, I don't want to scrape the author's page, which I guess would be
 my fall back approach)

 Thanks!
 Jim Skinner
 Santa Clara University

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


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


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


[twitter-dev] Twitter Background

2011-05-16 Thread Lorilen Arellano
Hi,

I just wanted to ask of how to make the twitter's background better, because
sometimes it looks wrong in size. Is it because it's based on auto resize?
Thanks and I will appreciate your response.

Best Regards,
Lorilen

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


[twitter-dev] Clarification on Geolocation TOS

2011-05-16 Thread Johnathan Rush
I'm working with a research group at the Ohio State University that is
interested in using tweets to study communication.  Our project is
made up of sociologists and geographers, and we are particularly
interested in looking at social networks and the space-time context of
discussions.  We want to be sure not to violate the terms of service,
specifically:

4. You will not attempt or encourage others to:
E. use or access the Twitter API to aggregate, cache (except as part
of a Tweet), or store place and other geographic location information
contained in Twitter Content.

We want to use locations, and would like to know what steps can we
take to avoid violating the TOS.  Would any of these measures below or
some combination of them satisfy the requirements?

- Not storing tweet ID
- Not storing user ID
- Not storing full 140-character status, only whether our topics of
interest were mentioned
- Generalize precise geolocations to a coarser level (Census tract/
neighborhood/county)

Hopefully I haven't overlooked an answer to this question elsewhere.
I found another post here asking for clarification (http://goo.gl/
hArk9), so it looks like clarification could benefit others, as well.
If we need to ask for an exception to the TOS, where should we direct
our application?

Thanks,
Johnathan Rush @rushgeo
PhD student in Geography

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


[twitter-dev] Re: Clarification on Geolocation TOS

2011-05-16 Thread Brian Sutorius
Hi Johnathan,
Sorry for any confusion. This policy item requires that if you cache
Twitter geo data, it must be stored with the rest of the tweet from
where it came (including tweet text).

Hope that helps,
Brian Sutorius
Twitter API Policy

On May 16, 9:41 am, Johnathan Rush rus...@gmail.com wrote:
 I'm working with a research group at the Ohio State University that is
 interested in using tweets to study communication.  Our project is
 made up of sociologists and geographers, and we are particularly
 interested in looking at social networks and the space-time context of
 discussions.  We want to be sure not to violate the terms of service,
 specifically:

 4. You will not attempt or encourage others to:
 E. use or access the Twitter API to aggregate, cache (except as part
 of a Tweet), or store place and other geographic location information
 contained in Twitter Content.

 We want to use locations, and would like to know what steps can we
 take to avoid violating the TOS.  Would any of these measures below or
 some combination of them satisfy the requirements?

 - Not storing tweet ID
 - Not storing user ID
 - Not storing full 140-character status, only whether our topics of
 interest were mentioned
 - Generalize precise geolocations to a coarser level (Census tract/
 neighborhood/county)

 Hopefully I haven't overlooked an answer to this question elsewhere.
 I found another post here asking for clarification (http://goo.gl/
 hArk9), so it looks like clarification could benefit others, as well.
 If we need to ask for an exception to the TOS, where should we direct
 our application?

 Thanks,
 Johnathan Rush @rushgeo
 PhD student in Geography

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


[twitter-dev] Opt-in App

2011-05-16 Thread Debbie Shockley
Can I be allowed to place an opt-in app on my home page in twitter?
Debbie

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


[twitter-dev] Re: Could not authenticate with OAuth

2011-05-16 Thread James.Estes
I ran into this as well, only on a few of the endpoints I was trying
to hit.  In my case, I'd left off the .json at the end of the
request url.  Seems like the service would have given a better message
than Could not authenticate with OAuth.

On Mar 31, 10:03 am, Mauro Asprea mauroasp...@gmail.com wrote:
 Hi guys, I placed an issue reprot here 
 -http://code.google.com/p/twitter-api/issues/detail?id=2131

 I am trying to post a Tweet using the REST
 endpoint: 1/statuses/update.json. It seems that, somehow, the oauth_token is
 broken or something, because If the user would have deleted or
 de-authenticated from my app I would expect another error message. I am
 retrying this call forever (or until google clears the GAE Task Queue) until
 have confirmation that this would be working or not, only then I will
 discard the task. So this request will keep hitting twitter API if you need
 to debug or something.

 I really don't know what is going on. This is the code of the response and
 the headers:
 code=401,
 headers={'status': '401 Unauthorized', 'x-google-cache-control':
 'remote-fetch', 'set-cookie': 'k=64.233.172.20.1301586772265895; path=/;
 expires=Thu, 07-Apr-11 15:52:52 GMT; domain=.twitter.com,
 guest_id=130158677226961885; path=/; expires=Sat, 30 Apr 2011 15:52:52 GMT,
 _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCDIBngwvAToHaWQiJTE3YzVhZjIyNGNiMzhi%250AZTAyZTFkOTg0OWJlYTQ3YTdjIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA--2c81d715cadd3b68aa2e26aab3e8b3a6d70e86da;
 domain=.twitter.com; path=/; HttpOnly', 'expires': 'Thu, 31 Mar 2011
 15:57:52 GMT', 'vary': 'Accept-Encoding', 'connection': 'close', 'server':
 'hi', 'x-runtime': '0.00554', 'via': 'HTTP/1.1 GWA', 'cache-control':
 'no-cache, max-age=300', 'date': 'Thu, 31 Mar 2011 15:52:52 GMT',
 'content-type': 'application/json; charset=utf-8', 'www-authenticate':
 'OAuth realm=http://api.twitter.com;'},
 content={request:\/1\/statuses\/update.json?oauth_version=1.0oauth_token=38219986-L9k5mARqijzZbQkMCuXuAoDTQpZM6Fk39C3160Z8Qoauth_nonce=42ee2e14c60a4448a7aedf3321e0ed14oauth_timestamp=1301586772oauth_signature=NgD37QLCIYlsZJGBjNu9Kw9o8PA%3Doauth_consumer_key=bTnd58yyvq8xTNDyXDyfsAoauth_signature_method=HMAC-SHA1,error:Could
 not authenticate with OAuth.}

 Thanks
 --
 Mauro Sebastián Asprea

 E-Mail: mauroasp...@gmail.com
 Mobile: +34 654297582
 Skype: mauro.aspreahttp://www.wishandbam.com/

 Algunos hombres ven las cosas como son y se preguntan porque. Otros sueñan
 cosas que nunca fueron y se preguntan por qué no?.
 George Bernard Shaw

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


[twitter-dev] ToS and redistribution of aggregate analysis results

2011-05-16 Thread amacinho
Hello,

I have been using Twitter API for research purposes and created an
ngram dataset of a tweet corpus that I have collected over the time. I
want to make this dataset public for research purposes so other
researchers may carry out their own studies without having to create a
similar corpus. I read the ToS and didn't see any explicit statement
that forbids such an action. I just want to be sure that my
interpretation is correct. Could anyone tell me more about this?

The dataset I plan to share is a collection of frequently-used ngram
phrases and their frequencies in my corpus. I don't plan to keep
phrases longer than 5 words. For instance, a sample of the file I plan
to make public is below:


drinking a glass of wine233
drinking a cup of coffee398
drinking poison and waiting for 10
drinking a tea without sugar98


In this case the phrases are 5-grams (they all consist of 5 words/
tokens) and the number bext to them is the number of times they are
observed in my corpus. As far as I can tell I am not redistributing
the content of tweets because these samples contain common phrases
that are already used commonly in daily language and I am merely
releasing their frequency in a sample of tweets.

Thanks in advance for your thoughts.

Amaç Herdağdelen

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


[twitter-dev] Re: ToS and redistribution of aggregate analysis results

2011-05-16 Thread Brian Sutorius
Hey Amaç,
Since the dataset you plan to distribute does not include Twitter
content directly from the API, you can totally post it for public
consumption. We allow tweet IDs to be shared in datasets like these,
so if it would help fellow researchers to compare your results to the
original corpus, you can also attach a list of the tweet IDs from your
data set (just not their full tweet text or the tweet objects).

Thanks,
Brian Sutorius
Twitter API Policy

On May 16, 12:27 pm, amacinho a...@herdagdelen.com wrote:
 Hello,

 I have been using Twitter API for research purposes and created an
 ngram dataset of a tweet corpus that I have collected over the time. I
 want to make this dataset public for research purposes so other
 researchers may carry out their own studies without having to create a
 similar corpus. I read the ToS and didn't see any explicit statement
 that forbids such an action. I just want to be sure that my
 interpretation is correct. Could anyone tell me more about this?

 The dataset I plan to share is a collection of frequently-used ngram
 phrases and their frequencies in my corpus. I don't plan to keep
 phrases longer than 5 words. For instance, a sample of the file I plan
 to make public is below:

 
 drinking a glass of wine        233
 drinking a cup of coffee        398
 drinking poison and waiting for 10
 drinking a tea without sugar    98
 

 In this case the phrases are 5-grams (they all consist of 5 words/
 tokens) and the number bext to them is the number of times they are
 observed in my corpus. As far as I can tell I am not redistributing
 the content of tweets because these samples contain common phrases
 that are already used commonly in daily language and I am merely
 releasing their frequency in a sample of tweets.

 Thanks in advance for your thoughts.

 Amaç Herdağdelen

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


[twitter-dev] Protect/Unprotect accounts using Twitter API

2011-05-16 Thread Gonzalo Larralde
Hi everyone,

Is there any technical way to protect/unprotect accounts using an API call?
Or I have to rely on POSTing to Twitter's setting page?

I want to put a checkbox in a client to make a single tweet public, by
unprotecting the account for a while.

Thanks!

--
Slds,

Gonzalo.

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


[twitter-dev] Re: ToS and redistribution of aggregate analysis results

2011-05-16 Thread amacinho
Great, thanks for the additional info Brian!

Amaç

On 16 Mayıs, 15:53, Brian Sutorius bsutor...@twitter.com wrote:
 Hey Amaç,
 Since the dataset you plan to distribute does not include Twitter
 content directly from the API, you can totally post it for public
 consumption. We allow tweet IDs to be shared in datasets like these,
 so if it would help fellow researchers to compare your results to the
 original corpus, you can also attach a list of the tweet IDs from your
 data set (just not their full tweet text or the tweet objects).

 Thanks,
 Brian Sutorius
 Twitter API Policy

 On May 16, 12:27 pm, amacinho a...@herdagdelen.com wrote:



  Hello,

  I have been using Twitter API for research purposes and created an
  ngram dataset of a tweet corpus that I have collected over the time. I
  want to make this dataset public for research purposes so other
  researchers may carry out their own studies without having to create a
  similar corpus. I read the ToS and didn't see any explicit statement
  that forbids such an action. I just want to be sure that my
  interpretation is correct. Could anyone tell me more about this?

  The dataset I plan to share is a collection of frequently-used ngram
  phrases and their frequencies in my corpus. I don't plan to keep
  phrases longer than 5 words. For instance, a sample of the file I plan
  to make public is below:

  
  drinking a glass of wine        233
  drinking a cup of coffee        398
  drinking poison and waiting for 10
  drinking a tea without sugar    98
  

  In this case the phrases are 5-grams (they all consist of 5 words/
  tokens) and the number bext to them is the number of times they are
  observed in my corpus. As far as I can tell I am not redistributing
  the content of tweets because these samples contain common phrases
  that are already used commonly in daily language and I am merely
  releasing their frequency in a sample of tweets.

  Thanks in advance for your thoughts.

  Amaç Herdağdelen

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


Re: [twitter-dev] Protect/Unprotect accounts using Twitter API

2011-05-16 Thread Taylor Singletary
Hi Gonzalo,

There's no way to toggle between protected and unprotected account states
via the API -- the only valid way to change the setting is for the user to
do it of their own volition using a web browser while logged in to Twitter
-- any automation of the submission of that toggle state by POSTing to the
page outside of the standard user-browser narrative would be very frowned
upon.

There is no way to set the protected state of a single tweet. Toggling
between the two account-level states effects all tweets issued by that
author and changing it for the purposes of a single tweet is inadvisable.

I would recommend that you dismiss the idea of manipulating a dynamic
protected/unprotected state and pursue an alternative.

@episod http://twitter.com/episod - Taylor Singletary


On Mon, May 16, 2011 at 12:56 PM, Gonzalo Larralde 
gonzalolarra...@gmail.com wrote:

 Hi everyone,

 Is there any technical way to protect/unprotect accounts using an API call?
 Or I have to rely on POSTing to Twitter's setting page?

 I want to put a checkbox in a client to make a single tweet public, by
 unprotecting the account for a while.

 Thanks!

 --
 Slds,

 Gonzalo.

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


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


Re: [twitter-dev] Protect/Unprotect accounts using Twitter API

2011-05-16 Thread Gonzalo Larralde
Hi Taylor,

Thanks for you fast and complete answer.

There is no way to set the protected state of a single tweet. Toggling
 between the two account-level states effects all tweets issued by that
 author and changing it for the purposes of a single tweet is inadvisable.

 I would recommend that you dismiss the idea of manipulating a dynamic
 protected/unprotected state and pursue an alternative.


I have to disagree with this paragraph. As you've said, the privacy changes
affects all tweets stored in an account, but, if you generate a tweet with
an unprotected account, it's indexed into the public search, and it's added
to the mentions timeline of a mentioned user that is not following the
protected account. That's why I want to toggle this state. In order to let
an user to participate in public hashtags, or answer/mention an user that is
not following him.

Anyway, if there's any other method to do that, please point me and I'll be
happy to do a research about it :-)

Have a nice day!

--
Slds,

Gonzalo.


On Mon, May 16, 2011 at 5:22 PM, Taylor Singletary 
taylorsinglet...@twitter.com wrote:

 Hi Gonzalo,

 There's no way to toggle between protected and unprotected account states
 via the API -- the only valid way to change the setting is for the user to
 do it of their own volition using a web browser while logged in to Twitter
 -- any automation of the submission of that toggle state by POSTing to the
 page outside of the standard user-browser narrative would be very frowned
 upon.

 There is no way to set the protected state of a single tweet. Toggling
 between the two account-level states effects all tweets issued by that
 author and changing it for the purposes of a single tweet is inadvisable.

 I would recommend that you dismiss the idea of manipulating a dynamic
 protected/unprotected state and pursue an alternative.

 @episod http://twitter.com/episod - Taylor Singletary


 On Mon, May 16, 2011 at 12:56 PM, Gonzalo Larralde 
 gonzalolarra...@gmail.com wrote:

 Hi everyone,

 Is there any technical way to protect/unprotect accounts using an API
 call? Or I have to rely on POSTing to Twitter's setting page?

 I want to put a checkbox in a client to make a single tweet public, by
 unprotecting the account for a while.

 Thanks!

 --
 Slds,

 Gonzalo.

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


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


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


[twitter-dev] Re: Clarification on Geolocation TOS

2011-05-16 Thread Johnathan Rush
Thanks for the information, Brian!

On May 16, 1:02 pm, Brian Sutorius bsutor...@twitter.com wrote:
 Hi Johnathan,
 Sorry for any confusion. This policy item requires that if you cache
 Twitter geo data, it must be stored with the rest of the tweet from
 where it came (including tweet text).

 Hope that helps,
 Brian Sutorius
 Twitter API Policy

 On May 16, 9:41 am, Johnathan Rush rus...@gmail.com wrote:
 
  I'm working with a research group at the Ohio State University that is
  interested in using tweets to study communication.  Our project is
  made up of sociologists and geographers, and we are particularly
  interested in looking at social networks and the space-time context of
  discussions.  We want to be sure not to violate the terms of service,
  specifically:

  4. You will not attempt or encourage others to:
  E. use or access the Twitter API to aggregate, cache (except as part
  of a Tweet), or store place and other geographic location information
  contained in Twitter Content.

  We want to use locations, and would like to know what steps can we
  take to avoid violating the TOS.  Would any of these measures below or
  some combination of them satisfy the requirements?

  - Not storing tweet ID
  - Not storing user ID
  - Not storing full 140-character status, only whether our topics of
  interest were mentioned
  - Generalize precise geolocations to a coarser level (Census tract/
  neighborhood/county)

  Hopefully I haven't overlooked an answer to this question elsewhere.
  I found another post here asking for clarification (http://goo.gl/
  hArk9), so it looks like clarification could benefit others, as well.
  If we need to ask for an exception to the TOS, where should we direct
  our application?

  Thanks,
  Johnathan Rush @rushgeo
  PhD student in Geography

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


[twitter-dev] HTTPS profile and profile background image URLs are being added to user objects

2011-05-16 Thread Matt Harris
Hey everyone,

Later this week we'll start to add two new fields to the user object
responses from the Streaming and REST APIs (not Search). Due to caching, not
all objects will have these fields immediately so you should check they are
present in the response before using them.

The two additional fields are the SSL versions of the profile_image_url and
the profile_background_image_url. They will be identified in the user object
by the attributes:
profile_image_https
profile_background_image_url_https

For example, the @twitter user would look similar to this:
{
  profile_background_tile: false,
  name: Twitter,
  profile_sidebar_fill_color: F6F6F6,
  profile_sidebar_border_color: EE,
  location: San Francisco, CA,
  created_at: Tue Feb 20 14:35:54 + 2007,
  profile_image_url: 
http://a0.twimg.com/profile_images/1124040897/at-twitter_normal.png;,
  id_str: 783214,
  is_translator: false,
  profile_link_color: 038543,
  follow_request_sent: false,
  default_profile: false,
  contributors_enabled: true,
  favourites_count: 10,
  url: http://twitter.com;,
  utc_offset: -28800,
  id: 783214,
  profile_image_url_https: 
https://si2.twimg.com/profile_images/1124040897/at-twitter_normal.png;,
  listed_count: 58963,
  profile_use_background_image: true,
  lang: en,
  protected: false,
  profile_text_color: 33,
  followers_count: 5063298,
  notifications: false,
  geo_enabled: true,
  verified: true,
  profile_background_color: ACDED6,
  profile_background_image_url_https: 
https://si2.twimg.com/images/themes/theme18/bg.gif;,
  description: Always wondering what's happening. ,
  time_zone: Pacific Time (US  Canada),
  statuses_count: ,
  friends_count: 487,
  default_profile_image: false,
  profile_background_image_url: 
http://a1.twimg.com/images/themes/theme18/bg.gif;,
  status: {
coordinates: null,
created_at: Mon May 16 17:23:59 + 2011,
truncated: false,
favorited: false,
id_str: 70177690392592384,
in_reply_to_user_id_str: null,
text: Remember in 2009 when @aplusk and @cnn were racing to be the
1st to reach a million followers? @ladygaga just reached 10 million. Wow!,
annotations: null,
contributors: [
  16739704
],
id: 70177690392592384,
retweet_count: 100+,
in_reply_to_status_id_str: null,
geo: null,
retweeted: false,
in_reply_to_user_id: null,
in_reply_to_screen_name: null,
source: web,
place: null,
in_reply_to_status_id: null
  },
  screen_name: twitter,
  show_all_inline_media: true,
  following: true
}

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris

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


Re: [twitter-dev] Protect/Unprotect accounts using Twitter API

2011-05-16 Thread Damon Parker
As an aside to this thread... In regards to changing the status of an account 
from public to private or vice versa, does this only affect the tweets coming 
after the change or does it change the whole user's timeline past to present?

Similarly if an account was private and is toggled to public, do all of the 
previously private tweets all of a sudden become public or just those starting 
after the toggle. Similarly if an account is public and toggled to private.

thanks


-- 
damonp

On Monday, May 16, 2011 at 3:22 PM, Taylor Singletary wrote: 
 There is no way to set the protected state of a single tweet. Toggling 
 between the two account-level states effects all tweets issued by that author 
 and changing it for the purposes of a single tweet is inadvisable. 

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


[twitter-dev] Re: HTTPS profile and profile background image URLs are being added to user objects

2011-05-16 Thread themattharris
Just to follow up on this, the correct additional fields are:
 profile_image_url_https
 profile_background_image_url_https

The original email missed the _url in profile_image_url_https.

Best
@themattharris

On May 16, 3:27 pm, Matt Harris thematthar...@twitter.com wrote:
 Hey everyone,

 Later this week we'll start to add two new fields to the user object
 responses from the Streaming and REST APIs (not Search). Due to caching, not
 all objects will have these fields immediately so you should check they are
 present in the response before using them.

 The two additional fields are the SSL versions of the profile_image_url and
 the profile_background_image_url. They will be identified in the user object
 by the attributes:
     profile_image_https
     profile_background_image_url_https

 For example, the @twitter user would look similar to this:
 {
   profile_background_tile: false,
   name: Twitter,
   profile_sidebar_fill_color: F6F6F6,
   profile_sidebar_border_color: EE,
   location: San Francisco, CA,
   created_at: Tue Feb 20 14:35:54 + 2007,
   profile_image_url: 
 http://a0.twimg.com/profile_images/1124040897/at-twitter_normal.png;,
   id_str: 783214,
   is_translator: false,
   profile_link_color: 038543,
   follow_request_sent: false,
   default_profile: false,
   contributors_enabled: true,
   favourites_count: 10,
   url: http://twitter.com;,
   utc_offset: -28800,
   id: 783214,
   profile_image_url_https: 
 https://si2.twimg.com/profile_images/1124040897/at-twitter_normal.png;,
   listed_count: 58963,
   profile_use_background_image: true,
   lang: en,
   protected: false,
   profile_text_color: 33,
   followers_count: 5063298,
   notifications: false,
   geo_enabled: true,
   verified: true,
   profile_background_color: ACDED6,
   profile_background_image_url_https: 
 https://si2.twimg.com/images/themes/theme18/bg.gif;,
   description: Always wondering what's happening. ,
   time_zone: Pacific Time (US  Canada),
   statuses_count: ,
   friends_count: 487,
   default_profile_image: false,
   profile_background_image_url: 
 http://a1.twimg.com/images/themes/theme18/bg.gif;,
   status: {
     coordinates: null,
     created_at: Mon May 16 17:23:59 + 2011,
     truncated: false,
     favorited: false,
     id_str: 70177690392592384,
     in_reply_to_user_id_str: null,
     text: Remember in 2009 when @aplusk and @cnn were racing to be the
 1st to reach a million followers? @ladygaga just reached 10 million. Wow!,
     annotations: null,
     contributors: [
       16739704
     ],
     id: 70177690392592384,
     retweet_count: 100+,
     in_reply_to_status_id_str: null,
     geo: null,
     retweeted: false,
     in_reply_to_user_id: null,
     in_reply_to_screen_name: null,
     source: web,
     place: null,
     in_reply_to_status_id: null
   },
   screen_name: twitter,
   show_all_inline_media: true,
   following: true

 }

 Best,
 @themattharris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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


Re: [twitter-dev] Protect/Unprotect accounts using Twitter API

2011-05-16 Thread Gonzalo Larralde
When the account is toggled to public, all the tweets are visible to anyone,
and can be indexed by any service. But they're not added to twitter's search
index. Only the tweets made with the account configured as public are
indexed by twitter search. Is the same for mentions.

So, if you change the state of the account tu publish one tweet, in the time
frame where the account is public, anyone can see your TL. The ideal
solution could be a flag at the moment of the status creation, to override
the account protection at the moment that Twitter decides if this tweet
should be sent or not to the public index.

On Mon, May 16, 2011 at 9:15 PM, Damon Parker cartmet...@gmail.com wrote:

  As an aside to this thread...  In regards to changing the status of an
 account from public to private or vice versa, does this only affect the
 tweets coming after the change or does it change the whole user's timeline
 past to present?

 Similarly if an account was private and is toggled to public, do all of the
 previously private tweets all of a sudden become public or just those
 starting after the toggle.  Similarly if an account is public and toggled to
 private.

 thanks


 --
 damonp

 On Monday, May 16, 2011 at 3:22 PM, Taylor Singletary wrote:

 There is no way to set the protected state of a single tweet. Toggling
 between the two account-level states effects all tweets issued by that
 author and changing it for the purposes of a single tweet is inadvisable.


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


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


[twitter-dev] Re: Issue - My twitter account won't load

2011-05-16 Thread Mohan Arun
On May 15, 7:50 pm, Carla Gasparian Sartori
carlagaspariansart...@gmail.com wrote:
 I have already tried to load my account @carlagasparian in several
 computers and in differentes IPs and it won't load since fryday the
 13th. The page appears as if it were blank. My computer manged to load
 my settings, but not my timeline.

Could it be because of some proxy from the place you are trying to
access
twitter? Check with your network administrator.

-=Mohan=-

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


[twitter-dev] Re: HTTPS profile and profile background image URLs are being added to user objects

2011-05-16 Thread Shachar
Hi Matt,

Thanks for the update.

Is there any plan to add these fields to the search API results?

-- Shachar

On May 17, 1:27 am, Matt Harris thematthar...@twitter.com wrote:
 Hey everyone,

 Later this week we'll start to add two new fields to the user object
 responses from the Streaming and REST APIs (not Search). Due to caching, not
 all objects will have these fields immediately so you should check they are
 present in the response before using them.

 The two additional fields are the SSL versions of the profile_image_url and
 the profile_background_image_url. They will be identified in the user object
 by the attributes:
     profile_image_https
     profile_background_image_url_https

 For example, the @twitter user would look similar to this:
 {
   profile_background_tile: false,
   name: Twitter,
   profile_sidebar_fill_color: F6F6F6,
   profile_sidebar_border_color: EE,
   location: San Francisco, CA,
   created_at: Tue Feb 20 14:35:54 + 2007,
   profile_image_url: 
 http://a0.twimg.com/profile_images/1124040897/at-twitter_normal.png;,
   id_str: 783214,
   is_translator: false,
   profile_link_color: 038543,
   follow_request_sent: false,
   default_profile: false,
   contributors_enabled: true,
   favourites_count: 10,
   url: http://twitter.com;,
   utc_offset: -28800,
   id: 783214,
   profile_image_url_https: 
 https://si2.twimg.com/profile_images/1124040897/at-twitter_normal.png;,
   listed_count: 58963,
   profile_use_background_image: true,
   lang: en,
   protected: false,
   profile_text_color: 33,
   followers_count: 5063298,
   notifications: false,
   geo_enabled: true,
   verified: true,
   profile_background_color: ACDED6,
   profile_background_image_url_https: 
 https://si2.twimg.com/images/themes/theme18/bg.gif;,
   description: Always wondering what's happening. ,
   time_zone: Pacific Time (US  Canada),
   statuses_count: ,
   friends_count: 487,
   default_profile_image: false,
   profile_background_image_url: 
 http://a1.twimg.com/images/themes/theme18/bg.gif;,
   status: {
     coordinates: null,
     created_at: Mon May 16 17:23:59 + 2011,
     truncated: false,
     favorited: false,
     id_str: 70177690392592384,
     in_reply_to_user_id_str: null,
     text: Remember in 2009 when @aplusk and @cnn were racing to be the
 1st to reach a million followers? @ladygaga just reached 10 million. Wow!,
     annotations: null,
     contributors: [
       16739704
     ],
     id: 70177690392592384,
     retweet_count: 100+,
     in_reply_to_status_id_str: null,
     geo: null,
     retweeted: false,
     in_reply_to_user_id: null,
     in_reply_to_screen_name: null,
     source: web,
     place: null,
     in_reply_to_status_id: null
   },
   screen_name: twitter,
   show_all_inline_media: true,
   following: true

 }

 Best,
 @themattharris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

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