Re: [twitter-dev] profile image upload 500 error

2010-09-08 Thread 玉柱九天
hi, taylorsingletary:

can you help me, witch twitter aip and oauthlib to develop in c++.

i can get friend timeline and user timeline info in oauthlib 0.8.9, but
while i realize to tweet, it prompt error.

now i want to get twittger api, and re-develop my app.

thank you very much.




2010/9/8 Raghu Prasad prasad.ragh...@gmail.com

 On Tue, Sep 7, 2010 at 8:36 PM, Taylor Singletary
 taylorsinglet...@twitter.com wrote:
  We've made considerable improvements to the profile image uploading
 process
  recently that should, in general, decrease the amount of spurious 500
 errors

 What is the status of profile image update via API?  Even today I am
 unable to get my profile image updated via API using OAuth. This
 functionality was broken earlier and was reported to be under
 re-development. So off late, I haven't bothered to check my code. Can
 you please confirm that the profile image update is possible now via
 API? In that case I can start looking for problem in my code. Before
 Twitter developers started to streamline the profile image update
 section (few months back), my code was working perfectly well. And
 I have been using OAuth based authentication for this.

 Raghu

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Retweet a listed tweet

2010-09-08 Thread Ken
As I work today on some features related to lists, I wonder again why,
on Twitter.com, I am unable to retweet a tweet that appears on a list
timeline. Only the 'Reply' option is available.

I plan to implement this and I expect it to work!

Any thoughts on why Twitter.com would not have designed for this?

Ken

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Request Pending parameter

2010-09-08 Thread SG
Hi,

When I send a follow request to a protected user, on Twitter I get it as
Request Pending. It also gives me an option of Cancelling the request.

In the REST API, which methods can be used to perform these operations? I am
not able to understand what changes in say user/show call when I send a
follow request.

Thanks,
SG

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: Request Pending parameter

2010-09-08 Thread SG
Sorry, I got my answer through previously answered question. Ignore.


On Wed, Sep 8, 2010 at 2:15 PM, SG awe...@gmail.com wrote:

 Hi,

 When I send a follow request to a protected user, on Twitter I get it as
 Request Pending. It also gives me an option of Cancelling the request.

 In the REST API, which methods can be used to perform these operations? I
 am not able to understand what changes in say user/show call when I send a
 follow request.

 Thanks,
 SG


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: Obtain email address after authentication

2010-09-08 Thread shanew
Thanks for the reply Ken. I understand all you have said, but the real
power of protocols like OAuth is user consent of their own attribute
data. My entire goal is to *avoid* having to ask a user to re-enter
their emal address. In this particular use case minimally invasive
is eqivalent to minimally useful.

On Sep 7, 7:58 pm, Ken k...@cimas.ch wrote:
 Twitter has distinguished itself as a minimally invasive social
 network. The API gives you the ability to replicate and build on the
 communication model appreciated by Twitter users.

 It's about brevity, it's lightweight and of course you can reach your
 followers inbox by direct messaging, if the user accepts email
 notifications.

 Meanwhile, verify_credentials gives you what you need to set up their
 account and log them in when they return. If you need a user's email
 address, just ask them for it.

 Ken

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] twitter api to get current month followers

2010-09-08 Thread ephron
sir,

 I used twitter api for member's followers, friends etc., I
want to draw a google line chart for this month followers or followers
by month.(eg., month vs followers added). Is is possible, Please
advice me.

thanks,
Greeta

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Fwd: [twitter-dev] twitter api to get current month followers in the removal of basic authentication

2010-09-08 Thread greeta daniel
Sir,

I used twitter api for member's followers, friends etc., I
want to draw a google line chart for this month followers or followers
by month.(eg., month vs followers added). Is is possible, Please
advice me.

note: Api need to be used in the removal of basic authentication.

Thanks,
Greeta

--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker:
http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] api documation, the context is ok? while my app tweet error?

2010-09-08 Thread Taylor Singletary
Hi yuzhujiutian,

Without knowing more about this OAuth library (and also at a disadvantage of
having very rusty C++ comprehension), I think I'll need to see a signature
base string for this request to understand what may be going wrong. It would
be generated somewhere within the chain of code executed in the
oauth_http_post
function you use. Are you able to successfully make GET requests?

Taylor

On Wed, Sep 8, 2010 at 2:38 AM, yuzhujiutian yuzhujiut...@gmail.com wrote:

 api documation, the context is ok? while my app tweet error?

 http://dev.twitter.com/doc

 my code info(oauthlib0.8.9, c++):

 char *url_tmp_2 = NULL;
 char *prm_tmp_2 = NULL;


 rtn_code1 = twit_oaum_access_token(TWIT_CURL_ACCESS_TOKEN_URL,
 TWIT_TEST_USER_CONSUMER_KEY,
 TWIT_TEST_USER_CONSUMER_SECRET,
 request_token_key_grant,
 access_token_secret, direct_token_pin_grant,
 access_token_key_grant,
 access_token_secret_grant,
 access_token_uscreen_name_grant,
 access_token_user_id_grant);

 url_tmp_2 = oauth_sign_url2(http://api.twitter.com/1/statuses/
 update, prm_tmp_2, OA_HMAC,
NULL,
 TWIT_TEST_USER_CONSUMER_KEY,
 TWIT_TEST_USER_CONSUMER_SECRET,
access_token_key_grant,
 access_token_secret_grant);

 prm_tmp_2 = xstrcat(prm_tmp_2, status=snsetest20100906);

 script_tmp_2 = oauth_http_post(url_tmp_2, prm_tmp_2);
 printf( script_tmp_2 = %s\n, script_tmp_2);

 OUTPUT:
 +++ tweed message test case 2


  url_tmp_2 = http://api.twitter.com/1/statuses/update
  prm_tmp_2 =

 oauth_consumer_key=eYpL3h8P2T3RZ7zNIdiAoauth_nonce=1F05UTyO2quHzVWwYDvSvoauth_signature_method=HMAC-
 SHA1oauth_timestamp=1283937866oauth_token=172312929-

 C4kebETEWK2XWA8dCzoSMRcKMDdnecg3be2EqsTroauth_version=1.0oauth_signature=dTKare5TcqE7WO40cRkB2At4Kv0%3Dstatus=snsetest20100906
  script_tmp_2 = ?xml version=1.0 encoding=UTF-8?
 hash
  request/1/statuses/update/request
  errorIncorrect signature/error
 /hash

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] URL to update and read timelines

2010-09-08 Thread abhishekbrave
Hi ,
I have used this url http://twitter.com/statuses/mentions.xml to get
the access token for a user thorough my application.
I want to know what all other URL's are there and after getting the
access token how can I update the status of user.
I am using oauth-signpost java api for twitter.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] unauthorized error

2010-09-08 Thread Mini
Please help me. i need a code that will tweet using oauth + twitter
api...

http://www.youtube.com/watch?v=25o0b2aEw0E

i have used this project and i m getting error

08-25 11:47:32.747: WARN/System.err(2029):
org.apache.http.client.HttpResponseException: Unauthorized 08-25
11:47:32.747: WARN/System.err(2029): at
org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:
71) 08-25 11:47:32.747: WARN/System.err(2029): at
org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:
59) 08-25 11:47:32.756: WARN/System.err(2029): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
657) 08-25 11:47:32.756: WARN/System.err(2029): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
627) 08-25 11:47:32.756: WARN/System.err(2029): at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:
616) 08-25 11:47:32.756: WARN/System.err(2029): at
com.test.twitter.BLOA$PostTask.doInBackground(BLOA.java:336) 08-25
11:47:32.756: WARN/System.err(2029): at com.test.twitter.BLOA
$PostTask.doInBackground(BLOA.java:1) 08-25 11:47:32.756: WARN/
System.err(2029): at android.os.AsyncTask$2.call(AsyncTask.java:185)
08-25 11:47:32.756: WARN/System.err(2029): at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:256)
08-25 11:47:32.756: WARN/System.err(2029): at
java.util.concurrent.FutureTask.run(FutureTask.java:122) 08-25
11:47:32.756: WARN/System.err(2029): at
java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:648) 08-25 11:47:32.756: WARN/
System.err(2029): at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:673) 08-25 11:47:32.756: WARN/
System.err(2029): at java.lang.Thread.run(Thread.java:1060)

and i want to solve that error while i m posting tweet.. pls help
thanks and regards...

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] URL to update and read timelines

2010-09-08 Thread Taylor Singletary
Hi Abhishek,

The URL you've used is part of the legacy API and you should move away from
it as soon as possible. REST API URLs are now in the structure of
http://api.twitter.com/1/statuses/mentions.xml (always use a version number
and the api subdomain).

There are many resources available in the Twitter API. You can find out
about them at http://dev.twitter.com/doc -- read about updating user status
at http://dev.twitter.com/doc/post/statuses/update

Thanks,
Taylor

On Wed, Sep 8, 2010 at 6:39 AM, abhishekbrave abhishek.br...@gmail.comwrote:

 Hi ,
 I have used this url http://twitter.com/statuses/mentions.xml to get
 the access token for a user thorough my application.
 I want to know what all other URL's are there and after getting the
 access token how can I update the status of user.
 I am using oauth-signpost java api for twitter.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Twitter Send Message API

2010-09-08 Thread Taylor Singletary
Hi Rajesh,

Does this occur on all direct messages you send, or does it only
happen occasionally?

Taylor

On Tue, Sep 7, 2010 at 9:46 PM, Rajesh ssrajesh@gmail.com wrote:

 i used twiiter api for status update,get connection,send message,

 status update and get connection working fine ,

 but in send message getting

 8/September/2010 10:15:33: {request:/1/direct_messages/
 new.json,error:Invalid request.}

 * TO SEND JOB DETAILS MESSAGE TO Twitter CONNECTIONS
 */
public function sendMessage($token, $sender_id=array(), $message)
{
global $logger;
$client = $token-getHttpClient($this-option_array);
$message = checkout this job jobsbyref;

$message_encode=urlencode($message);


$logger-debugLog(sender id is
 ---);
$logger-printArray($sender_id);
//$logger-debugLog(message.$message);
// Set Method (GET, POST or PUT)
$client-setMethod(Zend_Http_Client::POST);
for($i=0;$icount($sender_id);$i++)
{
$client-setUri('
 https://api.twitter.com/1/direct_messages/
 new.json');
$client-setParameterPost('user_id',$sender_id[$i]);
$client-setParameterPost('message',$message);
$logger-debugLog(client value is-);
$logger-printArray($client);
$response =$client-request();
$logger-debugLog(inside send message--
 wdwdeff---);
$logger-printArray($response-getBody());
}
}

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: Retweet a listed tweet

2010-09-08 Thread Ken
Same on Chrome... also for lists created by me and lists I follow. So
what's up? You guys all on IE?

On Sep 8, 3:56 pm, Ken k...@cimas.ch wrote:
 No... just to clarify, I'm talking about the Twitter.com website. I've
 wondered about it for some time.

 See:http://twitter.com/twitterapi/team. Each tweet has a 'Reply' link
 but no 'Retweet'. It seems to be intentional but I don't get the
 logic. You can retweet from search results, from the various retweets
 timelines - if it were a bug it would have been trivial to fix long
 ago.

 OK, wait - it seems to be a browser thing. I'm on Firefox 3.6.8 for
 Ubuntu and inspecting with Firebug I see that the span class=retweet-
 link is there but set to display:none in some css somewhere..

 On Sep 8, 3:04 pm, John Kalucki j...@twitter.com wrote:

  Is the tweet in question from a protected user?

  -John Kaluckihttp://twitter.com/jkalucki
  Twitter, Inc.

  On Wed, Sep 8, 2010 at 3:15 AM, Ken k...@cimas.ch wrote:
   As I work today on some features related to lists, I wonder again why,
   on Twitter.com, I am unable to retweet a tweet that appears on a list
   timeline. Only the 'Reply' option is available.

   I plan to implement this and I expect it to work!

   Any thoughts on why Twitter.com would not have designed for this?

   Ken

   --
   Twitter developer documentation and resources:http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en



-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: J2ME OAUTH token for Twitter

2010-09-08 Thread Ernandes Jr.
Hi, Amid

Do you know Twitter API ME (www.twapime.com)? This is a complete mobile Java
API that already supports xAuth. Even if you do not want to use it, you can
at least check its source code so you can find a solution for you problem.

In addition, here it goes a link that explaing how you have to perform to
get authenticated to Twitter, using OAuth, from your Java ME application:
http://dev.twitter.com/pages/xauth

Regards,
Ernandes

On Wed, Sep 8, 2010 at 2:56 AM, Amid Lad amid@gmail.com wrote:

 Thanks Tayalor

 But I am developing a twitter app for mobile (j2me)

 should i get request token everytime user want to login ?
 should user enter pin code everytime ?
 should i get access token everytime ?

 isn't there is any other way rather than providing the pin user should
 directly login...

 Amit Lad


 On Sep 7, 3:23 am, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  It's forbidden to automate the OAuth flow such that you attempt
  scarping the PIN code from the resultant page.
 
  If your application is capable of receiving URL-based callback, you'll
  want to preconfigure a default callback on dev.twitter.com (which
  indicates that your app is capable of receiving a callback) and
  provide an explicit callback on the request token step. When the user
  is sent to your callback, an oauth_verifier (PIN) will be included
  with the other relevant oauth_* parameters.
 
  If your application is incapable of receiving an URL-based callback,
  you need to present a UI for the user to hand-enter the PIN
  code/oauth_verifier, and then use that value to complete the flow
  after sending the user through the authorization steps.
 
  Taylor
 
  On Mon, Sep 6, 2010 at 12:14 AM, Amid Lad amid@gmail.com wrote:
   I've been transitioning our basic authentication calls over to OAuth.
   I'm using the j2me OAUTH library(for mobile). All of the
   authentication calls
   are working and I receive proper responses from GET requests.
 
   But the problem is with access token. What I have to do is to pass the
   url and get the
   pin number and need to pass the pin number to get the access.
 
   How can I avoid this process and directly get the pin response from
   server and use it get the
   twitter access?
 
   What is the url to get the pin response?
 
   Thanks in advance.
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 
Ernandes Jr.
-
ALL programs are poems. However,
NOT all programmers are poets.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] problem in twitter share

2010-09-08 Thread Tom van der Woerdt
There's currently a bug involving URLs that include an  character.

Tom


On 9/8/10 1:02 PM, swati wrote:
 script src=http://platform.twitter.com/widgets.js; type=text/
 javascript/script
 div
a href=http://twitter.com/share; class=twitter-share-button
   data-url=http://125.63.90.181/SPARC1/Functional/JobDetails.aspx?
 JobID=616links=true
 
   data-text= %=Name %
   data-related=anywhere:The Javascript API
   data-count=none
   Tweet/a
 
 when i pass data url as http://125.63.90.181/SPARC1/Functional/
 JobDetails.aspx?JobID=616links=true it says:
 
 'url' parameter does not contain a valid URL.
 
 what should i change to post it as a valid url
 
 please help 
 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: Obtain email address after authentication

2010-09-08 Thread Tom van der Woerdt
I disagree - the idea behind OAuth is to provide access to information
on a server without the need for sending usernames/passwords. Nothing
more than that. ;-)

You may like OpenID though.

Tom


On 9/8/10 3:01 PM, shanew wrote:
 Thanks for the reply Ken. I understand all you have said, but the real
 power of protocols like OAuth is user consent of their own attribute
 data. My entire goal is to *avoid* having to ask a user to re-enter
 their emal address. In this particular use case minimally invasive
 is eqivalent to minimally useful.
 
 On Sep 7, 7:58 pm, Ken k...@cimas.ch wrote:
 Twitter has distinguished itself as a minimally invasive social
 network. The API gives you the ability to replicate and build on the
 communication model appreciated by Twitter users.

 It's about brevity, it's lightweight and of course you can reach your
 followers inbox by direct messaging, if the user accepts email
 notifications.

 Meanwhile, verify_credentials gives you what you need to set up their
 account and log them in when they return. If you need a user's email
 address, just ask them for it.

 Ken
 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Twitter App working but...

2010-09-08 Thread Tom van der Woerdt
More information would be appreciated :-) Like: errors? Code?

Tom


On 9/8/10 9:28 AM, Pradeep Senanayake wrote:
 Hi,
 
 I changed the service url  from https to http. then it began to work in
 simulator but  after I installed that mobile phone, it doesnt work.
 Pls some body give me a solution for this.
 
 Thanks in advance
 Pradeep.
 
 -- 
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: Using the Twitter button on 1 page with multiple buttons

2010-09-08 Thread payme...@whostore.co.uk
Yeh, cheers for getting back to me on this guys, really good to know
youre on the ball to help fellow developers...

On Aug 29, 9:50 am, payme...@whostore.co.uk
payme...@whostore.co.uk wrote:
 Been a couple of days since I posted this...Can anyone please help?

 Seb.

 On Aug 27, 7:21 am, payme...@whostore.co.uk



 payme...@whostore.co.uk wrote:
  I am trying to add the twitter button to each news item on the same
  page (http://www.drwho-online.co.uk/news. Each item has a hashtag
  extension which is accessed on the same page e.g:

 http://www.drwho-online.co.uk/news/Default.aspx#general-doctor-who-li..

  When my news page loads, each of those items show the same number of
  retweets. How can I set it so that they each display their own unique
  retweets?

  Here is the current code Im using:

  centerdiv
     a href=http://twitter.com/share; class=twitter-share-button
  rel=canonical
        data-url=http://www.drwho-online.co.uk/news/
  Default.aspx#merchandise-new-doctor-who-computer-games
        data-via=drwhoonline
        data-text=#DoctorWho News - New Doctor Who Computer Games
        data-related=comparethedalek:The Doctor Who Price Comparison
  website!
        data-count=verticalTweet/a
  /div/center

  Any help will be greatly appreciated.

  Seb.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: Retweet a listed tweet

2010-09-08 Thread John Kalucki
That is weird. It has been fixed though, but I don't know when the fix will
deploy.

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



On Wed, Sep 8, 2010 at 6:56 AM, Ken k...@cimas.ch wrote:

 No... just to clarify, I'm talking about the Twitter.com website. I've
 wondered about it for some time.

 See: http://twitter.com/twitterapi/team. Each tweet has a 'Reply' link
 but no 'Retweet'. It seems to be intentional but I don't get the
 logic. You can retweet from search results, from the various retweets
 timelines - if it were a bug it would have been trivial to fix long
 ago.

 OK, wait - it seems to be a browser thing. I'm on Firefox 3.6.8 for
 Ubuntu and inspecting with Firebug I see that the span class=retweet-
 link is there but set to display:none in some css somewhere..



 On Sep 8, 3:04 pm, John Kalucki j...@twitter.com wrote:
  Is the tweet in question from a protected user?
 
  -John Kaluckihttp://twitter.com/jkalucki
  Twitter, Inc.
 
  On Wed, Sep 8, 2010 at 3:15 AM, Ken k...@cimas.ch wrote:
   As I work today on some features related to lists, I wonder again why,
   on Twitter.com, I am unable to retweet a tweet that appears on a list
   timeline. Only the 'Reply' option is available.
 
   I plan to implement this and I expect it to work!
 
   Any thoughts on why Twitter.com would not have designed for this?
 
   Ken
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en
 
 

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Display twitter status feed on website

2010-09-08 Thread Jeremy
Hey guys,

With this new twitter API update i am a little confused on what needs
to happen. From the stuff i read i am a little lost on what steps i
need to do in order to correct my website. I have a twitter account
that i would liked my feed displayed on my website. the landing page
index.php So when a customer comes to my main page it will list the
status feed automatically for them. I had this working just fine
before the API update.. The thing i have been reading is the twitter
button and the OAuth needs them to authenticate. But its not their
twitter account. It is mine i just want to display mu status for
EVERYONE to see through my website as the portal...

If any one can point me to the right direction that would be
wonderful.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] search users on twitter api, is it possible?

2010-09-08 Thread Bram Hammer
Hello all,
I'm now making some app with search on tweets, but now i want to make
the option to search on usernames also.
Is this possible in any other way?

If so, kick me in the right direction please!

Thanks in advance

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] search users on twitter api, is it possible?

2010-09-08 Thread Taylor Singletary
Hi Bram,

I think this documentation is what you're looking for
http://dev.twitter.com/doc/get/users/search

Example usage: GET http://api.twitter.com/1/users/search.xml?q=HULK

Taylor

On Wed, Sep 8, 2010 at 9:21 AM, Bram Hammer bhamme...@gmail.com wrote:

 Hello all,
 I'm now making some app with search on tweets, but now i want to make
 the option to search on usernames also.
 Is this possible in any other way?

 If so, kick me in the right direction please!

 Thanks in advance

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Blocked users appear in the API, not in the website

2010-09-08 Thread Julio Biason
Guys,

I opened this bug about a year ago but it got lost in the bug tracking
and I'm not in the mood to search that mess again.

http://imgur.com/JTxm1.png

As you can see, there is one tweet that appears in the application,
but it doesn't appear in the website. The reason is that the author of
the tweet (the original tweet, not the retweet) is blocked, which the
website does it right and don't display it, but the message still
appears in the API.

And no, I'm not the author or am in anyway related to Nambu, but I had
the same problem with my (now defunct) application.

-- 
Julio Biason julio.bia...@gmail.com
Twitter: http://twitter.com/juliobiason

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Display twitter status feed on website

2010-09-08 Thread Taylor Singletary
Provided your account is not protected, you should be able to make
unauthenticated feed requests to your personal user timeline at 150 requests
per hour.

Here's an example of requesting the RSS feed of @twitterapi

http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=twitterapi

Taylor

On Wed, Sep 8, 2010 at 9:08 AM, Jeremy jeremy.koskew...@gmail.com wrote:

 Hey guys,

 With this new twitter API update i am a little confused on what needs
 to happen. From the stuff i read i am a little lost on what steps i
 need to do in order to correct my website. I have a twitter account
 that i would liked my feed displayed on my website. the landing page
 index.php So when a customer comes to my main page it will list the
 status feed automatically for them. I had this working just fine
 before the API update.. The thing i have been reading is the twitter
 button and the OAuth needs them to authenticate. But its not their
 twitter account. It is mine i just want to display mu status for
 EVERYONE to see through my website as the portal...

 If any one can point me to the right direction that would be
 wonderful.

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Blocked users appear in the API, not in the website

2010-09-08 Thread Tom van der Woerdt
The API doesn't check for blocked users. You need to implement that
manually.

Tom


On 9/8/10 6:45 PM, Julio Biason wrote:
 Guys,
 
 I opened this bug about a year ago but it got lost in the bug tracking
 and I'm not in the mood to search that mess again.
 
 http://imgur.com/JTxm1.png
 
 As you can see, there is one tweet that appears in the application,
 but it doesn't appear in the website. The reason is that the author of
 the tweet (the original tweet, not the retweet) is blocked, which the
 website does it right and don't display it, but the message still
 appears in the API.
 
 And no, I'm not the author or am in anyway related to Nambu, but I had
 the same problem with my (now defunct) application.
 

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Blocked users appear in the API, not in the website

2010-09-08 Thread Julio Biason
On Wed, Sep 8, 2010 at 1:54 PM, Tom van der Woerdt i...@tvdw.eu wrote:
 The API doesn't check for blocked users. You need to implement that
 manually.

So for every request for the user_timeline I need to request the list
of blocked users, to have a proper list in case the user blocks
someone in the website?

That sounds incredible stupid.

-- 
Julio Biason julio.bia...@gmail.com
Twitter: http://twitter.com/juliobiason

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Blocked users appear in the API, not in the website

2010-09-08 Thread Tom van der Woerdt
On 9/8/10 7:15 PM, Julio Biason wrote:
 On Wed, Sep 8, 2010 at 1:54 PM, Tom van der Woerdt i...@tvdw.eu wrote:
 The API doesn't check for blocked users. You need to implement that
 manually.
 
 So for every request for the user_timeline I need to request the list
 of blocked users, to have a proper list in case the user blocks
 someone in the website?
 
 That sounds incredible stupid.
 

I'm not 100% about my last post. Anyway, the documentation says this
about blocks :
 The block list should be cached locally - the change velocity is usually 
 quite low. If possible, save the cache to disk to avoid polling for the block 
 list upon startup. Timestamp the block list write time and only update 
 perhaps as infrequently as every 6 to 24 hours.

Tom

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: OAuth/authentication language setting

2010-09-08 Thread Rahul Yargop
Hi Matt,

We are seeing French OAuth localise properly, but German OAuth has
missing translations.  Please let me know how I can get you
screenshots to expedite the translation.

Best,
Rahul

On Aug 23, 11:45 pm, Matt Harris thematthar...@twitter.com wrote:
 Hi,

 It sounds like the language is being detected successfully as some of
 the text is translated, but also looks like we're missing some
 translations.

 I know in the bug report you explained which strings were in English
 and which were inFrenchbut could I ask you to provide a screenshot
 as well. This will help our international team work out which of their
 translations need addressing.

 Best,
 Matt

 On Mon, Aug 23, 2010 at 2:27 PM, bobt tester bobtester8...@gmail.com wrote:
  Hi,

  I'm trying to develop a Twitter app inFrench.
  I saw discussion in this group which seems to indicate that this can
  be done by setting the browser Accept-Language header tofrench(fr-
  ca).

  However, this doesn't work well for me.
  I set the browser Accept-Language: fr-ca and end up withOAuth/
  authentication which is mixed with both english andfrenchtext.
  This happens for both FireFox  InternetExplorer.

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: search users on twitter api, is it possible?

2010-09-08 Thread Bram Hammer
thnx, that worked!
I was just not looking good enough :)

On 8 sep, 18:33, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Bram,

 I think this documentation is what you're looking 
 forhttp://dev.twitter.com/doc/get/users/search

 Example usage: GEThttp://api.twitter.com/1/users/search.xml?q=HULK

 Taylor

 On Wed, Sep 8, 2010 at 9:21 AM, Bram Hammer bhamme...@gmail.com wrote:
  Hello all,
  I'm now making some app with search on tweets, but now i want to make
  the option to search on usernames also.
  Is this possible in any other way?

  If so, kick me in the right direction please!

  Thanks in advance

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Problems with parameter since_id

2010-09-08 Thread Alexandre Pires

Hi, my url is somethink like this:

http://api.twitter.com/1/statuses/home_timeline.xml?since_id=23937068328oauth_consumer_key=cJwcYa5qNKb8VCDcJTKVxQoauth_nonce=2D9B8D9CBD3318EC2017CFD1DF8E5465oauth_signature_method=HMAC-SHA1oauth_signature=izFyAuYwkZvvz%2BKhmG1S6aFb5%2FI%3Doauth_timestamp=1283970241oauth_token=42722301-kyYKZ0lpKRkpP7pJNTH8sOjYkAePpqM7peLMolYtzoauth_version=1.0

Some idea ? When I was using basic authentication, was working.




- Original Message - 
From: Taylor Singletary taylorsinglet...@twitter.com

To: twitter-development-talk@googlegroups.com
Sent: Tuesday, September 07, 2010 12:46 PM
Subject: Re: [twitter-dev] Problems with parameter since_id



Can you share an example of your signature base string in the case of
using since_id? Are you actually using since_id=12345?

Taylor

On Tue, Sep 7, 2010 at 4:22 AM, Alexandre alexandrepires2...@gmail.com 
wrote:

Hi Guys,

Well, I'm trying to use home_timeline with parameter since_id, but is
not working

if I use max_id, works well, but if I use since_id not work

http://api.twitter.com/1/statuses/home_timeline.xml?max_id=54321 (this
works)

http://api.twitter.com/1/statuses/home_timeline.xml?since_id=12345
(this dont work)

the error returned is:

(401) errorIncorrect signature/error

I'm doing OAuth authentication correctly

why only with since_id not working, but with max_id work ?


--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: 
http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en 


--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] List Widget code upgraded yet?

2010-09-08 Thread Mike
Hi, we have a list widget implemented, and recently started seeing the
issue: http://www.wired.com/epicenter/2010/08/twitter-login-errors/

Has the widget code been updated, and if I use the generator here:
http://twitter.com/goodies/widget_list

...will I get the correct code?

Thanks, Mike

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Problems with parameter since_id

2010-09-08 Thread Taylor Singletary
Hi Alexandre,

That's your execution URL, not your signature base string -- which might be
more difficult to access, depending on your library. When a signature
validation error occurs, it most often can be traced back to the signature
base string: the specific string that is constructed and then signed to
create your signature.

Do you know how to access components of this process?

Taylor


On Wed, Sep 8, 2010 at 11:30 AM, Alexandre Pires 
alexandrepires2...@gmail.com wrote:

 Hi, my url is somethink like this:


 http://api.twitter.com/1/statuses/home_timeline.xml?since_id=23937068328oauth_consumer_key=cJwcYa5qNKb8VCDcJTKVxQoauth_nonce=2D9B8D9CBD3318EC2017CFD1DF8E5465oauth_signature_method=HMAC-SHA1oauth_signature=izFyAuYwkZvvz%2BKhmG1S6aFb5%2FI%3Doauth_timestamp=1283970241oauth_token=42722301-kyYKZ0lpKRkpP7pJNTH8sOjYkAePpqM7peLMolYtzoauth_version=1.0

 Some idea ? When I was using basic authentication, was working.




 - Original Message - From: Taylor Singletary 
 taylorsinglet...@twitter.com
 To: twitter-development-talk@googlegroups.com
 Sent: Tuesday, September 07, 2010 12:46 PM
 Subject: Re: [twitter-dev] Problems with parameter since_id


  Can you share an example of your signature base string in the case of
 using since_id? Are you actually using since_id=12345?

 Taylor

 On Tue, Sep 7, 2010 at 4:22 AM, Alexandre alexandrepires2...@gmail.com
 wrote:

 Hi Guys,

 Well, I'm trying to use home_timeline with parameter since_id, but is
 not working

 if I use max_id, works well, but if I use since_id not work

 http://api.twitter.com/1/statuses/home_timeline.xml?max_id=54321 (this
 works)

 http://api.twitter.com/1/statuses/home_timeline.xml?since_id=12345
 (this dont work)

 the error returned is:

 (401) errorIncorrect signature/error

 I'm doing OAuth authentication correctly

 why only with since_id not working, but with max_id work ?


 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: Error 401 only in Target (working fine in simulator)

2010-09-08 Thread Craig Hockenberry
5 minutes (or even 15 minutes) for the OAuth timestamp is a major
problem on the iPad. This device doesn't have a guaranteed network
connection and therefore doesn't do NTP syncs on a regular basis. It's
common for these devices to be off by an hour or more.

We do a check at startup against the Twitter servers, but that's a
pretty crappy user experience for the end user because they have to
manually go into their settings to adjust the time (often.) It
generates a lot of support requests, too.

-ch

On Sep 1, 2:07 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Our generous time range is actually +- ~ 15 minutes -- I just tell everyone
 within 5 minutes to keep things proper and sane. :)

 Understand that our correction here is a bit sudden; we may make a
 compromise tweak that will restrict future timestamps, but now with a more
 relaxed resolution than 15 minutes -- with the intention to rectify this
 more gradually in the future.

 In the meantime, we strongly suggest clients perform a timestamp sanity
 check. I'll work on formalizing and abstracting the few options developers
 have to make this smooth.

 Some day we'll finally release our improved OAuth 1.0A implementation that
 will also be very specific with you about the drift detected in your
 timestamp.

 Thanks,
 Taylor

 On Wed, Sep 1, 2010 at 1:55 PM, M. Edward (Ed) Borasky 



 zn...@borasky-research.net wrote:
  That's a surprise - I'd expect Apple to be on top of stuff like that! Even
  so, 18 seconds is well within Twitter's outrageously generous tolerance of
  five minutes.

  Then again, I used to work at Goddard Space Flight Center - I was spoiled
  by having clocks accurate to a microsecond available as wall plugs. ;-)

  --
  M. Edward (Ed) Borasky
 http://borasky-research.nethttp://twitter.com/znmeb

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

  Quoting Tom van der Woerdt i...@tvdw.eu:

   Not iOS (iPhone, iPod Touch, etc) - my iPod Touch seems to be 18 seconds
  out of sync.

  Tom

  On 9/1/10 10:39 PM, M. Edward (Ed) Borasky wrote:

  I'd think mobiles - at least the common ones (iPhone, Android, Symbian,
  Blackberry, Palm, etc.) would be synchronized to world time
  automatically. At least my old LG ENV and current Verizon Droid
  Incredible tell me what time it is. ;-)

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: Error 401 only in Target (working fine in simulator)

2010-09-08 Thread Taylor Singletary
But you don't need to ask the user to update their time at all, do you
Craig? You simply make a non-rate limited request to Twitter before making
any other requests, scrape the current time from the Date HTTP header
Twitter responds with, and then for as long as the application is active
you adjust all of your oauth_timestamps by the delta between the system
clock and Twitter's.. all of this can happen without a user interaction,
correct?

Taylor

On Wed, Sep 8, 2010 at 1:34 PM, Craig Hockenberry 
craig.hockenbe...@gmail.com wrote:

 5 minutes (or even 15 minutes) for the OAuth timestamp is a major
 problem on the iPad. This device doesn't have a guaranteed network
 connection and therefore doesn't do NTP syncs on a regular basis. It's
 common for these devices to be off by an hour or more.

 We do a check at startup against the Twitter servers, but that's a
 pretty crappy user experience for the end user because they have to
 manually go into their settings to adjust the time (often.) It
 generates a lot of support requests, too.

 -ch

 On Sep 1, 2:07 pm, Taylor Singletary taylorsinglet...@twitter.com
 wrote:
  Our generous time range is actually +- ~ 15 minutes -- I just tell
 everyone
  within 5 minutes to keep things proper and sane. :)
 
  Understand that our correction here is a bit sudden; we may make a
  compromise tweak that will restrict future timestamps, but now with a
 more
  relaxed resolution than 15 minutes -- with the intention to rectify this
  more gradually in the future.
 
  In the meantime, we strongly suggest clients perform a timestamp sanity
  check. I'll work on formalizing and abstracting the few options
 developers
  have to make this smooth.
 
  Some day we'll finally release our improved OAuth 1.0A implementation
 that
  will also be very specific with you about the drift detected in your
  timestamp.
 
  Thanks,
  Taylor
 
  On Wed, Sep 1, 2010 at 1:55 PM, M. Edward (Ed) Borasky 
 
 
 
  zn...@borasky-research.net wrote:
   That's a surprise - I'd expect Apple to be on top of stuff like that!
 Even
   so, 18 seconds is well within Twitter's outrageously generous tolerance
 of
   five minutes.
 
   Then again, I used to work at Goddard Space Flight Center - I was
 spoiled
   by having clocks accurate to a microsecond available as wall plugs. ;-)
 
   --
   M. Edward (Ed) Borasky
  http://borasky-research.nethttp://twitter.com/znmeb
 
   A mathematician is a device for turning coffee into theorems. - Paul
   Erdos
 
   Quoting Tom van der Woerdt i...@tvdw.eu:
 
Not iOS (iPhone, iPod Touch, etc) - my iPod Touch seems to be 18
 seconds
   out of sync.
 
   Tom
 
   On 9/1/10 10:39 PM, M. Edward (Ed) Borasky wrote:
 
   I'd think mobiles - at least the common ones (iPhone, Android,
 Symbian,
   Blackberry, Palm, etc.) would be synchronized to world time
   automatically. At least my old LG ENV and current Verizon Droid
   Incredible tell me what time it is. ;-)
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en
 
   --
   Twitter developer documentation and resources:
 http://dev.twitter.com/doc
   API updates via Twitter:http://twitter.com/twitterapi
   Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
   Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Problems with parameter since_id

2010-09-08 Thread Alexandre Pires
Taylor, I dont know how the component does this, but the strange is that the 
same code works fine if I use max_id instead of since_id.


  - Original Message - 
  From: Taylor Singletary 
  To: twitter-development-talk@googlegroups.com 
  Sent: Wednesday, September 08, 2010 5:12 PM
  Subject: Re: [twitter-dev] Problems with parameter since_id


  Hi Alexandre,


  That's your execution URL, not your signature base string -- which might be 
more difficult to access, depending on your library. When a signature 
validation error occurs, it most often can be traced back to the signature base 
string: the specific string that is constructed and then signed to create your 
signature.


  Do you know how to access components of this process?


  Taylor



  On Wed, Sep 8, 2010 at 11:30 AM, Alexandre Pires 
alexandrepires2...@gmail.com wrote:

Hi, my url is somethink like this:


http://api.twitter.com/1/statuses/home_timeline.xml?since_id=23937068328oauth_consumer_key=cJwcYa5qNKb8VCDcJTKVxQoauth_nonce=2D9B8D9CBD3318EC2017CFD1DF8E5465oauth_signature_method=HMAC-SHA1oauth_signature=izFyAuYwkZvvz%2BKhmG1S6aFb5%2FI%3Doauth_timestamp=1283970241oauth_token=42722301-kyYKZ0lpKRkpP7pJNTH8sOjYkAePpqM7peLMolYtzoauth_version=1.0

Some idea ? When I was using basic authentication, was working.




- Original Message - From: Taylor Singletary 
taylorsinglet...@twitter.com
To: twitter-development-talk@googlegroups.com
Sent: Tuesday, September 07, 2010 12:46 PM
Subject: Re: [twitter-dev] Problems with parameter since_id



  Can you share an example of your signature base string in the case of
  using since_id? Are you actually using since_id=12345?

  Taylor

  On Tue, Sep 7, 2010 at 4:22 AM, Alexandre alexandrepires2...@gmail.com 
wrote:

Hi Guys,

Well, I'm trying to use home_timeline with parameter since_id, but is
not working

if I use max_id, works well, but if I use since_id not work

http://api.twitter.com/1/statuses/home_timeline.xml?max_id=54321 (this
works)

http://api.twitter.com/1/statuses/home_timeline.xml?since_id=12345
(this dont work)

the error returned is:

(401) errorIncorrect signature/error

I'm doing OAuth authentication correctly

why only with since_id not working, but with max_id work ?



  -- 
  Twitter developer documentation and resources: http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker: 
http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en 


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: 
http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en




  -- 
  Twitter developer documentation and resources: http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Status format stream API vs. REST API

2010-09-08 Thread yaemog Dodigo
Hello,

I'm wondering why the format of status messages that get delivered via the
stream API differs from status elements that are retrieved via the REST API
(e.g., public_timeline or user_timeline).
More precisely, status elements from the stream API contain an 'entities'
object with user_mentions, hashtags, and urls properties. This information
is missing from status messages that are retrieved from the REST API. Are
there plans to unify these formats?

thx

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Status format stream API vs. REST API

2010-09-08 Thread Taylor Singletary
You can obtain entities from most API methods that return tweets by
appending an ?include_entities=true parameter to the request. Eventually,
entities should be part of the default response.

You can read more about entities here:
http://dev.twitter.com/pages/tweet_entities

Methods that should support this query parameter generally indicate
compatibility on the documentation page corresponding to the resource.

Including entities on the REST API can sometimes increase total processing
time, so if you're asking for a large amount of data, you might want to
lower the total count you ask for at a time so that your request doesn't
time out.

Thanks,
Taylor

On Wed, Sep 8, 2010 at 3:17 PM, yaemog Dodigo yae...@gmail.com wrote:

 Hello,

 I'm wondering why the format of status messages that get delivered via the
 stream API differs from status elements that are retrieved via the REST API
 (e.g., public_timeline or user_timeline).
 More precisely, status elements from the stream API contain an 'entities'
 object with user_mentions, hashtags, and urls properties. This information
 is missing from status messages that are retrieved from the REST API. Are
 there plans to unify these formats?

 thx

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] List Statuses Page Limit

2010-09-08 Thread Matthew Terenzio
What is the per page limit of statuses returned on the:

http://dev.twitter.com/doc/get/:user/lists/:id/statuses

method?

Also, if since_id is passed, how many will be returned in a page by default
(if the amount returned is greater than the default)?

Thanks,

Matt

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] User Streams Update

2010-09-08 Thread John Kalucki
The User Streams product launch is moving along as planned. We haven't had
any downtime and we've only had a few subtle functionality problems to
refine. In short, all is going very well. End-users have been overwhelmingly
positive about the experience of real-time updates without rate limits.
We're very excited about getting User Streams out to everyone!

We intend to move this product into an open beta test period soon, and then
on into full production shortly thereafter. We have a few more
developer-facing changes to make, and a bit more tinkering with the
production environment to do before we can move on to these next steps.
These changes may require minor code changes on some clients, and we'll have
to allow some time for these changes to be pushed and to settle out.

The plan remains as previous announced. A re-cap:

1) All desktop client developers are encouraged to transition to User
Streams and reduce their reliance on the REST API.

2) Web sites and other large scale integrations are not supported on User
Streams and must use Site Streams. Apply for the beta test here:
http://dev.twitter.com/pages/site_streams

3) Prototype against betastream.twitter.com/2b/user.json, but do not ship
product against this preview cluster. Limit your prototype distribution to
at most a few dozen controlled instances.

4) Contact us at a...@twitter.com so that we can move you onto the full User
Streams cluster. We need to ensure that there's sufficient capacity, that we
have a valid contact information, and other implementation details have been
addressed.

5) Once stable on the new endpoint, release beta test versions of your
client against the User Streams cluster.

6) Push updates to your beta testers as required.

7) User Streams will move into a fully-open beta period in several weeks,
and the preview endpoint will be removed.

8) Following a successful beta period, User Streams will graduate into full
production status.


Apologies if you received unclear messages about the status of this product
launch. At least one developer fell through the cracks, and I want to ensure
that everyone has appropriate access to this API.

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

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] User Streams Update

2010-09-08 Thread M. Edward (Ed) Borasky

Quoting John Kalucki j...@twitter.com:


The User Streams product launch is moving along as planned. We haven't had
any downtime and we've only had a few subtle functionality problems to
refine. In short, all is going very well. End-users have been overwhelmingly
positive about the experience of real-time updates without rate limits.
We're very excited about getting User Streams out to everyone!

We intend to move this product into an open beta test period soon, and then
on into full production shortly thereafter. We have a few more
developer-facing changes to make, and a bit more tinkering with the
production environment to do before we can move on to these next steps.
These changes may require minor code changes on some clients, and we'll have
to allow some time for these changes to be pushed and to settle out.


Do you have any hints/guesses on how the delivered data might change  
as a result of these changes? I'm happy with what's coming down the  
pipe now - I'm mostly interested in whether there might be more  
coming, less coming, or an expansion of how many terms I can put in  
the track component.



8) Following a successful beta period, User Streams will graduate into full
production status.


Do you have any hints/guesses on how the policies/management details  
will be structured? Things like terms of service, pricing - all that  
lawyerly / accountantly stuff.

--
M. Edward (Ed) Borasky
http://borasky-research.net http://twitter.com/znmeb

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


--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] User Streams Update

2010-09-08 Thread John Kalucki
As soon as an issue is clear, we tend to announce what we've learned. If I
had the list of changes ready to go, I would have posted them.

The current general Twitter API TOS applies to User Streams. Follow the TOS
and the User Streams Implementation Suggestions...

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


On Wed, Sep 8, 2010 at 7:39 PM, M. Edward (Ed) Borasky 
zn...@borasky-research.net wrote:

 Quoting John Kalucki j...@twitter.com:

  The User Streams product launch is moving along as planned. We haven't had
 any downtime and we've only had a few subtle functionality problems to
 refine. In short, all is going very well. End-users have been
 overwhelmingly
 positive about the experience of real-time updates without rate limits.
 We're very excited about getting User Streams out to everyone!

 We intend to move this product into an open beta test period soon, and
 then
 on into full production shortly thereafter. We have a few more
 developer-facing changes to make, and a bit more tinkering with the
 production environment to do before we can move on to these next steps.
 These changes may require minor code changes on some clients, and we'll
 have
 to allow some time for these changes to be pushed and to settle out.


 Do you have any hints/guesses on how the delivered data might change as a
 result of these changes? I'm happy with what's coming down the pipe now -
 I'm mostly interested in whether there might be more coming, less coming, or
 an expansion of how many terms I can put in the track component.


  8) Following a successful beta period, User Streams will graduate into
 full
 production status.


 Do you have any hints/guesses on how the policies/management details will
 be structured? Things like terms of service, pricing - all that lawyerly /
 accountantly stuff.
 --
 M. Edward (Ed) Borasky
 http://borasky-research.net http://twitter.com/znmeb

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




-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] oAuth and applications that run in the background

2010-09-08 Thread Cameron Kaiser
 I have an application (PHP script), that runs as a CRON job on a Linux
 server. It uses cURL and basic authentication to retrieve users
 profiles and statuses.
 
 Now that basic authentication is no longer supported, I need to switch
 to oAuth, but with oAuth, there's a level of interactivity with
 Twitter, to login. This is not an option for this script, since it has
 no user interface.
 
 Any ideas how to proceed?

You need to get your own app key and token from dev.twitter.com. With that,
you can plug it into any number of OAuth tools. Since you are using PHP,
Abraham's Twitteroauth would be the best bet (see

http://github.com/abraham/twitteroauth

).

-- 
 personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- FORTUNE: You will feel gypped by this fortune. -

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] List Widget code upgraded yet?

2010-09-08 Thread Matt Harris
Hi Mike,

Can you share the widget code you are using. The API for lists hasn't
been changed, and neither has the lists widget, so I need to see what
code you are using and the list you are following.

Thanks,
Matt

On Wed, Sep 8, 2010 at 1:03 PM, Mike rotti...@gmail.com wrote:
 Hi, we have a list widget implemented, and recently started seeing the
 issue: http://www.wired.com/epicenter/2010/08/twitter-login-errors/

 Has the widget code been updated, and if I use the generator here:
 http://twitter.com/goodies/widget_list

 ...will I get the correct code?

 Thanks, Mike

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Re: OAuth/authentication language setting

2010-09-08 Thread Matt Harris
Thanks Rahul.

I've heard back from our internationalisation team and they are aware
the German page hasn't been fully translated. They have it on their
list of pages to process and hope to have the code updated soon.

Thanks for keeping an eye on our language support,
Matt

On Wed, Sep 8, 2010 at 11:04 AM, Rahul Yargop rahul.yar...@gmail.com wrote:
 Hi Matt,

 We are seeing French OAuth localise properly, but German OAuth has
 missing translations.  Please let me know how I can get you
 screenshots to expedite the translation.

 Best,
 Rahul

 On Aug 23, 11:45 pm, Matt Harris thematthar...@twitter.com wrote:
 Hi,

 It sounds like the language is being detected successfully as some of
 the text is translated, but also looks like we're missing some
 translations.

 I know in the bug report you explained which strings were in English
 and which were inFrenchbut could I ask you to provide a screenshot
 as well. This will help our international team work out which of their
 translations need addressing.

 Best,
 Matt

 On Mon, Aug 23, 2010 at 2:27 PM, bobt tester bobtester8...@gmail.com wrote:
  Hi,

  I'm trying to develop a Twitter app inFrench.
  I saw discussion in this group which seems to indicate that this can
  be done by setting the browser Accept-Language header tofrench(fr-
  ca).

  However, this doesn't work well for me.
  I set the browser Accept-Language: fr-ca and end up withOAuth/
  authentication which is mixed with both english andfrenchtext.
  This happens for both FireFox  InternetExplorer.

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] oAuth and applications that run in the background

2010-09-08 Thread Abraham Williams
Here is some more info about using an access token for a single account:
http://dev.twitter.com/pages/oauth_single_token

Abraham
-
Abraham Williams | Hacker Advocate | http://abrah.am
@abraham | http://projects.abrah.am | http://blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.


On Wed, Sep 8, 2010 at 20:34, Cameron Kaiser spec...@floodgap.com wrote:

  I have an application (PHP script), that runs as a CRON job on a Linux
  server. It uses cURL and basic authentication to retrieve users
  profiles and statuses.
 
  Now that basic authentication is no longer supported, I need to switch
  to oAuth, but with oAuth, there's a level of interactivity with
  Twitter, to login. This is not an option for this script, since it has
  no user interface.
 
  Any ideas how to proceed?

 You need to get your own app key and token from dev.twitter.com. With
 that,
 you can plug it into any number of OAuth tools. Since you are using PHP,
 Abraham's Twitteroauth would be the best bet (see

http://github.com/abraham/twitteroauth

 ).

 --
  personal:
 http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com *
 ckai...@floodgap.com
 -- FORTUNE: You will feel gypped by this fortune.
 -

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Twitter Send Message API

2010-09-08 Thread Matt Harris
Hi Rajesh,

The parameters for sending a direct message are:
* user_id or screen_name
* text

I notice you are setting the POST parameter message when you should be
using text. Try with text as the parameter name and let us know how it
goes.

More information on the method is here:
http://dev.twitter.com/doc/post/direct_messages/new

Matt

On Tue, Sep 7, 2010 at 9:46 PM, Rajesh ssrajesh@gmail.com wrote:
 i used twiiter api for status update,get connection,send message,

 status update and get connection working fine ,

 but in send message getting

 8/September/2010 10:15:33: {request:/1/direct_messages/
 new.json,error:Invalid request.}

 * TO SEND JOB DETAILS MESSAGE TO Twitter CONNECTIONS
         */
        public function sendMessage($token, $sender_id=array(), $message)
        {
                global $logger;
                $client = $token-getHttpClient($this-option_array);
                $message = checkout this job jobsbyref;

                $message_encode=urlencode($message);


                $logger-debugLog(sender id is ---);
                $logger-printArray($sender_id);
                //$logger-debugLog(message.$message);
                // Set Method (GET, POST or PUT)
                $client-setMethod(Zend_Http_Client::POST);
                for($i=0;$icount($sender_id);$i++)
                {
                        
 $client-setUri('https://api.twitter.com/1/direct_messages/
 new.json');
                        $client-setParameterPost('user_id',$sender_id[$i]);
                        $client-setParameterPost('message',$message);
                        $logger-debugLog(client value is-);
                        $logger-printArray($client);
                        $response =$client-request();
                        $logger-debugLog(inside send message--
 wdwdeff---);
                        $logger-printArray($response-getBody());
                }
        }

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group: 
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 


Matt Harris
Developer Advocate, Twitter
http://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Ars Technica article

2010-09-08 Thread Raffi Krikorian
hi all.

i've posted a brief response at http://mehack.com/oauth-and-the-twitter-api

On Thu, Sep 2, 2010 at 11:59 AM, Clay Loveless c...@killersoft.com wrote:

 Hi guys,

 I'm really interested in the platform team's response to the Ars Technica
 article here:


 http://arstechnica.com/security/guides/2010/09/twitter-a-case-study-on-how-to-do-oauth-wrong.ars

 if wrapped:

 http://bit.ly/dhLkx7

 What's the word, guys?

 -Clay

 --
 Clay Loveless
 Founder
 w: http://killersoft.com
 t: @claylo



 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en




-- 
Raffi Krikorian
Twitter Platform Team
http://twitter.com/raffi

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: oAuth and applications that run in the background

2010-09-08 Thread marvMcK
Abraham, thanks for the link. Just to be clear: I am assuming that
CONSUMER_KEY, CONSUMER_SECRET are specific to one application, but I
can use them with ANY application, or do I have to register each
application (in this case PHP script), and use the keys specific to
it?

On Sep 8, 8:40 pm, Abraham Williams 4bra...@gmail.com wrote:
 Here is some more info about using an access token for a single 
 account:http://dev.twitter.com/pages/oauth_single_token

 Abraham
 -
 Abraham Williams | Hacker Advocate |http://abrah.am
 @abraham |http://projects.abrah.am|http://blog.abrah.am
 This email is: [ ] shareable [x] ask first [ ] private.

 On Wed, Sep 8, 2010 at 20:34, Cameron Kaiser spec...@floodgap.com wrote:
   I have an application (PHP script), that runs as a CRON job on a Linux
   server. It uses cURL and basic authentication to retrieve users
   profiles and statuses.

   Now that basic authentication is no longer supported, I need to switch
   to oAuth, but with oAuth, there's a level of interactivity with
   Twitter, to login. This is not an option for this script, since it has
   no user interface.

   Any ideas how to proceed?

  You need to get your own app key and token from dev.twitter.com. With
  that,
  you can plug it into any number of OAuth tools. Since you are using PHP,
  Abraham's Twitteroauth would be the best bet (see

         http://github.com/abraham/twitteroauth

  ).

  --
   personal:
 http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com*
  ckai...@floodgap.com
  -- FORTUNE: You will feel gypped by this fortune.
  -

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Twitter App working but...

2010-09-08 Thread Pradeep Senanayake
Hi Tom,

Thanks for the reply, It doesnt give any exception, but the authentication
is failed  when it runs in the mobile phone,
but it runs in the emulator.

Thanks  Regards,
Pradeep.

On Wed, Sep 8, 2010 at 11:14 PM, Tom van der Woerdt i...@tvdw.eu wrote:

 More information would be appreciated :-) Like: errors? Code?

 Tom


 On 9/8/10 9:28 AM, Pradeep Senanayake wrote:
  Hi,
 
  I changed the service url  from https to http. then it began to work in
  simulator but  after I installed that mobile phone, it doesnt work.
  Pls some body give me a solution for this.
 
  Thanks in advance
  Pradeep.
 
  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


Re: [twitter-dev] Twitter App working but...

2010-09-08 Thread pradeep senanayake
Hi tom,

Thanks for the reply, It doesnt give any exception, but the authentication
is failed  when it runs in the mobile phone,
but it runs in the emulator.
 code is like this,

try {
Credential credential = new
Credential(user,pwd,Constants.twitConsumerKey,Constants.twitConsumerSecretKey);
UserAccountManager userAccMgr =
UserAccountManager.getInstance(credential);

userAccMgr.setServiceURL(UserAccountManager.TWITTER_API_URL_SERVICE_OAUTH_ACCESS_TOKEN,
http://api.twitter.com/oauth/access_token;);
if (userAccMgr.verifyCredential()) {
Tweet tweet = new Tweet(message);
TweetER tweeter = TweetER.getInstance(userAccMgr);
tweet = tweeter.post(tweet);
DialogFrame frame =  new DialogFrame();
frame.setTitle(Twitter);
frame.setBody(Successfully Twitted!);
frame.createUI(2);
}
else {
DialogFrame frame =  new DialogFrame();
frame.setTitle(Twitter);
frame.setBody(Cannot be Twitted!+'\n'+Check the account
detais.);
frame.createUI(2);
}
}
catch(Exception ex){
DialogFrame frame =  new DialogFrame();
frame.setTitle(Twitter);
frame.setBody(ex.getMessage()/*Cannot be Twitted!+'\n'+Check
the account detais.*/);
frame.createUI(2);
ex.printStackTrace();
}

On Wed, Sep 8, 2010 at 11:14 PM, Tom van der Woerdt i...@tvdw.eu wrote:

 More information would be appreciated :-) Like: errors? Code?

 Tom


 On 9/8/10 9:28 AM, Pradeep Senanayake wrote:
  Hi,
 
  I changed the service url  from https to http. then it began to work in
  simulator but  after I installed that mobile phone, it doesnt work.
  Pls some body give me a solution for this.
 
  Thanks in advance
  Pradeep.
 
  --
  Twitter developer documentation and resources:
 http://dev.twitter.com/doc
  API updates via Twitter: http://twitter.com/twitterapi
  Issues/Enhancements Tracker:
  http://code.google.com/p/twitter-api/issues/list
  Change your membership to this group:
  http://groups.google.com/group/twitter-development-talk?hl=en

 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk?hl=en


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en


[twitter-dev] Re: List Widget code upgraded yet?

2010-09-08 Thread Dharmesh
Matt,

I'm actually seeing some similar issues when invoking the list API
(other API calls work just fine).

When trying to invoke the lists.xml method to get the lists for a
user, the call fails with a Could not authenticate you.  This is
despite having valid OAuth credentials (which work perfectly for other
API calls).

Something seems to be going on specifically with the List API and
OAuth.

Thanks for your help.

Regards,
Dharmesh Shah
Founder and CTO, HubSpot

On Sep 8, 11:38 pm, Matt Harris thematthar...@twitter.com wrote:
 Hi Mike,

 Can you share the widget code you are using. The API for lists hasn't
 been changed, and neither has the lists widget, so I need to see what
 code you are using and the list you are following.

 Thanks,
 Matt





 On Wed, Sep 8, 2010 at 1:03 PM, Mike rotti...@gmail.com wrote:
  Hi, we have a list widget implemented, and recently started seeing the
  issue:http://www.wired.com/epicenter/2010/08/twitter-login-errors/

  Has the widget code been updated, and if I use the generator here:
 http://twitter.com/goodies/widget_list

  ...will I get the correct code?

  Thanks, Mike

  --
  Twitter developer documentation and resources:http://dev.twitter.com/doc
  API updates via Twitter:http://twitter.com/twitterapi
  Issues/Enhancements Tracker:http://code.google.com/p/twitter-api/issues/list
  Change your membership to this 
  group:http://groups.google.com/group/twitter-development-talk?hl=en

 --

 Matt Harris
 Developer Advocate, Twitterhttp://twitter.com/themattharris

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en