[twitter-dev] Re: Poor documentation. For example, regarding lists. Suggestions for improvement.

2011-06-25 Thread Nicole Simon


So if I want to have an information about a list you expect me

to read all of the documention to figure out which version to use
although i am fine in programming. I guess just including something as
a proper documentation for example a link see current available
versions here is too much to ask.


 list_id is available from the index of lists for a user. This request is the
 /1/lists request:
    http://dev.twitter.com/doc/get/lists

so i am supposed to get my list info, use the user infos (which ii
have to work through as well as no working examples are provided
there), scan through the nearly 2k lists for the one i want and then
be able to implement a simple list request.

I see. that is so much more sensible than just having one (!) working
example on the page and allowing for an easy way of figuring out
hei you know the owner and the slug of the list you are looking? this
is how you write the code example.
know the id? this is how you do it.

 Alternatively, if those values are unknown or you don't wish to look them
 up, you can provide the slug and screen_name as you have done in your
 example.

great. how about an example on that page about how to do so, since the
information
on the page is additionally inconsistent?

i have not looked up the api doc for a while, but the current status
is ridiculous.
not even all parameters are correctly listed nor how to call them.
I have to search google for documentation on how to properly format an
api request
in 5 min instead of being able to look at the real documentation.

but hei, it looks much more pretty now. /sarcasm

Nicole


--
http://nicole-simon.eu / http://twitter.com/NicoleSimon



-- 
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] trending topics order

2011-06-25 Thread M. Edward (Ed) Borasky
How difficult would it be for Twitter to return the tweets per minute  
by location on Trending Topics? For example, if hockey is getting  
100 tweets per minute in Boston, the line for Boston would read


boston 100


--
http://twitter.com/znmeb http://borasky-research.net

A mathematician is a device for turning coffee into theorems. -- Paul
Erdos


Quoting Matt Harris thematthar...@twitter.com:


Hi,

Yes, trending topic responses are returned in the order of most trending to
least trending. In the example you give Guille Franco is trending more than
Vuvuzela.

Best,
@themattharris https://twitter.com/intent/follow?screen_name=themattharris
Developer Advocate, Twitter



On Fri, Jun 17, 2011 at 7:09 PM, xkema kemal...@gmail.com wrote:


Hi there

Are trending topics results, ordered from most-trendy topic to last
trendy?
..
..
..
consider a trends node like:

trends: [
   {
 name: Guille Franco,
 url: http://search.twitter.com/search?q=Guille+Franco;
   },
   {
 name: #honestyhour,
 url: http://search.twitter.com/search?q=%23honestyhour;
   },
   ...
   ...
   ...
   ...
   {
 name: Vuvuzela,
 url: http://search.twitter.com/search?q=Vuvuzela;
   }
 ],

Question again: IsGuille Franco most trending and Vuvuzela least
trending. (for these ten result)

--
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] stream responses with incomplete json tweets

2011-06-25 Thread Bertram van de Ven
Hello,

I was playing with the twitter stream (http://stream.twitter.com/1/
statuses/filter.json?track=test) and found that I sometimes get
incomplete json returned. Some responses are complete and others are
not. I don't have an idea  why this is and how to solve this.

Here is the C# code to reproduce this:
/*-CODE */
byte[] buf = new byte[32768];
String domain = http://stream.twitter.com/1/statuses/
filter.json?track= + hash;
HttpWebRequest request =
(HttpWebRequest)HttpWebRequest.Create(domain);
request.Credentials = new
NetworkCredential(user_name,user_password);
HttpWebResponse response =
(HttpWebResponse)request.GetResponse();
using (response)
{
Stream resStream = response.GetResponseStream();
using (resStream)
{
int count;
do
{
// fill the buffer with data
count = resStream.Read(buf, 0, buf.Length);
// make sure we read some data);
if (count != 0)
{
// translate from bytes to ASCII text
string tempString =
Encoding.ASCII.GetString(buf, 0, count);
if (!string.IsNullOrEmpty(tempString)  !
tempString.Equals(null,
StringComparison.InvariantCultureIgnoreCase))
{
try
{
 
JsonConvert.DeserializeObject(tempString);
}
catch (Exception e)
{
Console.WriteLine(Exception
occured);
}
}
}
} while (count  0); // any more data to read?
}
}
/*-END CODE */

-- 
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] Cannot connect to app that has same name as Account

2011-06-25 Thread Scott Wilcox
I'm sure your issue lies elsewhere. I've got apps named the same as an account 
and it works fine as far as I can remember.

What errors are you seeing, what calls are you making and what programming 
language are you using?

On 25 Jun 2011, at 06:48, modemlooper wrote:

 Say my account name is @MyApp and my app name is MyApp, it seems like
 you cannot sign into an app with OAuth if this is the case. Has anyone
 ever have this problem and if so what can I do about it?

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

-- 
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] Cannot connect to app that has same name as Account

2011-06-25 Thread Tom van der Woerdt

I've seen @TweetDeck tweet from TweetDeck...

Tom


On 6/25/11 7:48 AM, modemlooper wrote:

Say my account name is @MyApp and my app name is MyApp, it seems like
you cannot sign into an app with OAuth if this is the case. Has anyone
ever have this problem and if so what can I do about 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


[twitter-dev] Re: Update status d returns success response but doesn't show up on web

2011-06-25 Thread R
thanks Matt... I can now stop chasing a ghost

On Jun 24, 5:28 pm, Matt Harris thematthar...@twitter.com wrote:
 Hi,

 This is expected behavior and is caused by the SMS commands. You can find a
 complete list of the commands and their aliases on our help site:
    https://support.twitter.com/entries/14020-official-twitter-text-commands

 Best,
 @themattharris https://twitter.com/intent/follow?screen_name=themattharris
 Developer Advocate, Twitter



 On Fri, Jun 24, 2011 at 3:40 PM, R r4eem...@gmail.com wrote:
  'w' is another

  On May 13, 10:34 am, e.p.c. epcoste...@gmail.com wrote:
   On May 13, 6:29 am, SN Testing sngtwt...@gmail.com wrote:

when update status with one character d returns success response but
the new status doesn't show up on web; when update status with a or
b or c or e, it shows up on web, so the character d is black
listed?

   d' as the first non-blank byte is the command/code for direct message.

  --
  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: Possible to find out how many people have see a tweet?

2011-06-25 Thread berr08
I understand that...just want to make the information available to my
members.  So they tweet something out of the website and someone RT
the link I just want to show the potential number of eyes that have
potentially seen the tweet RT on their timeline.

On Jun 24, 10:06 am, Mohan Arun mar...@gmail.com wrote:
  I am wondering if there is a way to see how many people have seen my
  tweet via Retweets.  For instance I tweet Twitter is the best it is
  RT by one of my followers who has 1,000 followers, then by one of his
  followers who has 200 so my tweet has been seen by those users 1,200
  people via Retweets.

 Many people just follow 1000+ people and may not 'see' a retweet
 even though the retweet was available to read in their tweet inbox
 because there is 1000 other people whose tweets are visible
 when the twitter user logs in. Many tweets are going unread.

 - Mohanhttp://www.mohanarun.com

-- 
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] Junior Programmer with an Issue

2011-06-25 Thread Mark Cooney
Hi all

Complete newbie to programming but getting to grip.

Creating a website and need to get access for friends and family on
Twitter.

Up until 1 hour ago the following worked:

tw.ProxyUsername = Trim(Me.txtTwitterName.Text)
Session(NewUserName) = Me.txtTwitterName.Text
 
Response.Redirect(tw.GetAuthorizationLink(System.Configuration.ConfigurationManager.AppSettings(AuthenticationCode),
_
 
System.Configuration.ConfigurationManager.AppSettings(AuthenticationSecret)))

It still takes me to Twitter with the
http://twitter.com/oauth/authorize?oauth_token=NuDD63Vru**aTcjH3KppirsEAV4quWk
and then lets me log in, says authorise and then i get error=Could+not
+authenticate+you.content=0 after redirecting me to right place.

Any idea what that means and is there just an issue with Twitter right
now?

-- 
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] 401 Unauthorized in Python/Twisted app

2011-06-25 Thread Eryn Wells
An interesting note, perhaps. I was writing unit tests last night to check my 
OAuth implementation. I was able to connect and retrieve data via the regular 
API (api.twitter.com), but I still have the 401 issue when trying to connect to 
the user stream API.

On 2011-06-24, at 19:54, Eryn Wells wrote:

 Hello all,
 
 I'm quite new to OAuth and the Twitter API, and this is my first post to this 
 list.
 
 I'm working on an app in Python using the Twisted framework. It uses 
 brosner's fork of python-oauth2[1] to do the initial authentication and 
 subsequent request signing. I'm using the PIN code flow for authentication. 
 Do access tokens need to be generated every time you start the app, or can 
 they be stored between runs and reused? If so, how long are the valid? Right 
 now, my code writes the access token and secret out to a file and recovers it 
 the next time it starts. The procedure seems to go just fine – I don't get 
 any errors – but I can't really verify that everything is Correct because I 
 don't really know what I'm looking for…
 
 Second thing, I'm at the point where I'm trying to do the initial connection 
 to https://userstream.twitter.com/2/user.json. I'm using SSLConnect and 
 web.HTTPClient, if that helps… I write out the command (GET url), and the 
 headers (a Host and an Authorization header). The OAuth library generates the 
 following Authorization header content. I get back a 401 Unauthorized error 
 with a WWW-Authenticate: Basic header. I've heard from @twitterapi that User 
 Streams require OAuth, so why am I getting a Basic auth response?
 
 OAuth realm=Firehose, oauth_nonce=25622603816219309853125867384777, 
 oauth_consumer_key=cut, oauth_signature_method=HMAC-SHA1, 
 oauth_version=1.0, oauth_token=cut, 
 oauth_signature=1AV5YG4DsfCV4jDoQcOCOmxZ2Gw%3D
 
 Anything obvious there that I'm doing wrong?
 
 Thanks,
 Eryn
 
 -- 
 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 API error on my website

2011-06-25 Thread Sports Banter
Hi,

I have latest twitter posts fed through to my website through my
wordpress website and just this morning I started getting the message:

The Twitter API returned an error while processing your request.
Please try again.

Not sure what could be causing this problem but any help would be
greatly appreciated.

Thanks


Steven Butler

-- 
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: Possible to find out how many people have see a tweet?

2011-06-25 Thread Mohan Arun
On Jun 25, 10:59 pm, berr08 robertdur...@gmail.com wrote:
 I understand that...just want to make the information available to my
 members.  So they tweet something out of the website and someone RT
 the link I just want to show the potential number of eyes that have
 potentially seen the tweet RT on their timeline.

This thread is about finding a parent tweet given a child tweets:
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/98dee416063c73a9

I would guess finding retweets of a given tweet would have a similar
api call.

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: Get Twitter Statuses based on a timestamp

2011-06-25 Thread Mohan Arun
 Hi Guys,
 I am new to use twitetr api, but managed to understand it to some
 extent. But here i am stuck in some problem, i want to get user status
 updates,  but not all updates. I want a way to just provide a
 timestamp, and let the twitter api get statuses done by the user till
 that particular timestamp.

Try this:
http://searchtweetsbydate.com/

-Mohan Arun

-- 
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] Strange behavior for updates starting with DM

2011-06-25 Thread Felipe Knorr Kuhn
Hello, fellow developers,

I was talking to my friend Nilton (@nilton_jr) about the lack of a group
DM feature, so I was tried to post a tweet starting with DM em grupo
(Portuguese for group DM) and I noticed that the tweet wasn't posted.

Tweetdeck says Update successful and Twitter for the iPhone doesn't
display any error message at all.

I wonder if this is a bug like the auto follow bug from last year [1].

This probably isn't the best channel to report this kind of bug, but I'm
sure you guys can forward this to the right team.

Thanks in advance,

FK
@knorrium

[1] http://en.webrazzi.com/2010/05/10/bug-make-anyone-follow-you-on-twitter/

-- 
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] Access tokens changing on their own?

2011-06-25 Thread Nicholas Chase

This happened to me again today.  Am I the only one it's happening to?

  Nick

On 6/24/2011 10:24 PM, Nicholas Chase wrote:
Today, for the second or third time in a couple of months, my 
application access tokens seem to have changed on their own.  My app 
was working fine, and then all of a sudden I started getting 
authentication errors.  I went and checked, and my access tokens had 
changed.


Do they change regularly?  They they change when I access a particular 
page or something?


  Nick



--
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] Access tokens changing on their own?

2011-06-25 Thread Scott Wilcox
They'll only change when you reset your consumer key/secret and perhaps your 
account password too.

On 26 Jun 2011, at 06:49, Nicholas Chase wrote:

 This happened to me again today.  Am I the only one it's happening to?
 
   Nick
 
 On 6/24/2011 10:24 PM, Nicholas Chase wrote:
 Today, for the second or third time in a couple of months, my application 
 access tokens seem to have changed on their own.  My app was working fine, 
 and then all of a sudden I started getting authentication errors.  I went 
 and checked, and my access tokens had changed.
 
 Do they change regularly?  They they change when I access a particular page 
 or something?
 
   Nick

--
Scott Wilcox

@dordotky | sc...@dor.ky | http://dor.ky
+44 (0) 7538 842418 | +1 (646) 827-0580

-- 
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