Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
X-Twitter-Client headers?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
feastofcru...@gmail.com  
View profile  
 More options May 31 2007, 11:27 am
From: feastofcru...@gmail.com
Date: Thu, 31 May 2007 15:27:05 -0000
Local: Thurs, May 31 2007 11:27 am
Subject: X-Twitter-Client headers?
I'm working on a plugin for WordPress that allows selected blog
entries to be cross-posted to Twitter. Entries will post to Twitter
perfectly, but I'm having difficulty setting the Twitter client.
Here's the relevant portion of my PHP code:

    $headers = array("X-Twitter-Client" => "Auto Tweet", "X-Twitter-
Client-Version" => "1.1", "X-Twitter-Client-URL" => "http://
feastofcrumbs.com/downloads/wp-plugins/auto-tweet/auto-tweet.xml");
    $curl_handle = curl_init();
    curl_setopt($curl_handle,CURLOPT_URL,"$twitter_rest");
    curl_setopt($curl_handle,CURLOPT_HTTPHEADER,$headers);
    curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
    curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
    curl_setopt($curl_handle,CURLOPT_POST,1);
    curl_setopt($curl_handle,CURLOPT_POSTFIELDS,"status=$content");
    curl_setopt($curl_handle,CURLOPT_USERPWD,"$username:$password");
    $buffer = curl_exec($curl_handle);
    curl_close($curl_handle);

Like I said, the post is sent to Twitter perfectly and without errors,
but the X headers don't show. All my posts say "from web." Am I
passing the X headers incorrectly, or do I need to do something more
to get Twitter to recognize my client?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Payne  
View profile  
 More options May 31 2007, 12:56 pm
From: "Alex Payne" <a...@al3x.net>
Date: Thu, 31 May 2007 09:56:12 -0700
Local: Thurs, May 31 2007 12:56 pm
Subject: Re: X-Twitter-Client headers?
We don't base the "from [appname]" links on the X-Twitter-Client
headers; they're simply an ad-hoc community standard that third-party
Twitter developers have agreed upon.  They help us get a sense of our
traffic from API tools, but they're purely optional.

As per my announcement in a previous thread on this group, if you
message me off-list I can set you up with a "source" parameter for
your application and get you linked up.  Thanks!

On 5/31/07, feastofcru...@gmail.com <feastofcru...@gmail.com> wrote:

--
Alex Payne
http://twitter.com/al3x

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mave99a  
View profile  
 More options Jul 22 2007, 11:46 am
From: mave99a <zhihong....@gmail.com>
Date: Sun, 22 Jul 2007 15:46:21 -0000
Local: Sun, Jul 22 2007 11:46 am
Subject: Re: X-Twitter-Client headers?
I have the same problem, no matter how I set the X-Twitter header, it
alway show "from web".  :(

I steal the header which work well from AlexKing's Twittertool and
test, still don't work.  Can any one help a hand to take a look?

> POST /statuses/update.xml HTTP/1.1

Authorization: Basic bWF2ZTk5YjptYW8xOTk4
User-Agent: Twitter Tools http://alexking.org/projects/wordpress
Host: twitter.com
Accept: */*
X-Twitter-Client: Twitter Tools
X-Twitter-Client-URL: http://alexking.org/projects/wordpress/twitter-tools.xml
X-Twitter-Client-Version: 1.0
Content-Length: 61
Content-Type: application/x-www-form-urlencoded

< HTTP/1.1 200 OK
< Connection: close
< Date: Sun, 22 Jul 2007 15:32:55 GMT
< Set-Cookie: _twitter_session=8fb370251909a2a4855769ac9ab7de66;
domain=.twitter
.com; path=/
< Status: 200 OK
< X-Runtime: 0.05169
< ETag: "f00cac656588bc7a5cabcf1549d37daa"
< Cache-Control: private
On Jun 1, 12:56 am, "Alex Payne" <a...@al3x.net> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cameron Kaiser  
View profile  
 More options Jul 22 2007, 11:55 am
From: Cameron Kaiser <spec...@floodgap.com>
Date: Sun, 22 Jul 2007 08:55:13 -0700 (PDT)
Local: Sun, Jul 22 2007 11:55 am
Subject: Re: X-Twitter-Client headers?

> I have the same problem, no matter how I set the X-Twitter header, it
> alway show "from web".  :(

The Twitter people set this up for you by hand -- just request it.

--
------------------------------------ personal: http://www.cameronkaiser.com/ --
  Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com
-- Condense soup, not books! --------------------------------------------------


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mave99a  
View profile  
 More options Jul 22 2007, 11:57 am
From: mave99a <zhihong....@gmail.com>
Date: Sun, 22 Jul 2007 15:57:47 -0000
Local: Sun, Jul 22 2007 11:57 am
Subject: Re: X-Twitter-Client headers?
Oh, it need to have a "source", header is not used...

I c, after I put a source in the post body, it worked....(with alex's
twittertool source)

On Jul 22, 11:46 pm, mave99a <zhihong....@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »