[twitter-dev] When will we be able to upload images?

2011-06-10 Thread Terence Eden
I see that the new Official iOS Twitter App allows users of the
Sainted iDevice to post photos
(http://twitter.com/mariazverina/status/79134307079303168/)

Any idea when this will be available to us lowly developers?

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


[twitter-dev] Re: New Photo upload feature: What's new coming on the API side

2011-06-03 Thread Terence Eden
I've written a quick tutorial for getting and displaying the media in
PHP.
http://shkspr.mobi/blog/index.php/2011/06/displaying-twitter-photos-via-entities/

Looking forward to seeing the upload API.

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


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

2011-05-17 Thread Terence Eden
Thank for implementing my suggestion ;-) (http://shkspr.mobi/blog/
index.php/2011/05/a-minor-twitter-privacy-bug/)
A quick question. Why add a new field?  Why not use the existing one
IFF the request came over HTTPS?

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

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

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

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

 }

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

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


[twitter-dev] Re: need emergency help

2011-03-25 Thread Terence Eden
Save them in a cookie which you give to the user.

On Mar 25, 4:05 am, Blaaze Artifex blaazet...@gmail.com wrote:
 thanks for your reply, am using php and am not going to use those variables
 in the same session instead am going to use them in future (may be after
 many days), will it work.?

 On Fri, Mar 25, 2011 at 1:42 AM, Trevor Dean trevord...@gmail.com wrote:
  When the user is returned to your site after authenticating you can grab
  the oauth_token and the oauth_verifier from the url and use that to get an
  access token.  I'm using .NET and the Twitterizer API to accomplish this,
  I'm not sure what language you're doing this in or if you are using a third
  party api but the steps should be the same.   Once you get the access token
  you should pull out the Token and TokenSecret and you can store that in your
  database and use for future requests.

  Trevor

  On Thu, Mar 24, 2011 at 4:00 PM, Blaaze blaazet...@gmail.com wrote:

  hi all

  i am abhilash from india, am trying to design a new site where users
  post their posts, but i need it to be also posted on twitter on the
  specific user's twitter page, the user is asked to login to twitter
  and allow the permission to my app to do status update, but the real
  part what i need to know is

  i need my code to save the details of the last session and use the
  same things when the user posts for the next time without asking the
  user to reauthenticate for the app

  please help me with this, if possible show an example also

  will be waiting for your reply

  regards
  Abhilash

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

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

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


[twitter-dev] Inconsistency between JSON XML for favorited retweets

2011-03-24 Thread Terence Eden
There seems to be an error with the JSON feed when it comes to
retweets.

User Alice favourites a tweet from Bob, and then retweets to to
Charlie.

The JSON feed that Charlie gets marks Bob's tweet as one of Charlies
favourites.  This does not happen in the XML feed.

JSON (snipped)
created_at : Thu Mar 24 15:36:16 + 2011,
favorited : true,
id : 50944022319087616,
id_str : 50944022319087616,
retweet_count : 1,
retweeted : false,
retweeted_status : { contributors : null,
created_at : Thu Mar 24 15:30:23 + 2011,
favorited : true,
id : 50942542786723840,

XML (snipped)
id50944022319087616/id
favoritedfalse/favorited
retweet_count1/retweet_count
retweetedfalse/retweeted
retweeted_status
   id50942542786723840/id
   favoritedfalse/favorited

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


[twitter-dev] Re: Using OAuth with twitter mobile

2010-07-03 Thread Terence Eden
Hi,

The Twitter OAuth page should automatically detect mobile phones via
their User-Agent string.  It will then display a mobile friendly OAuth
page.

That's how we do it on Dabr - you can see the source at
http://code.google.com/p/dabr/source/browse/#svn/trunk/common

Terence

On Jun 28, 2:46 pm, virus sushantro...@gmail.com wrote:
 Hello developers,
 I'm a new user of OAuth and twitter both :). I need to develop a web
 application which is able to authenticate a user using OAuth. What I
 want is that the authorization page opens up as a mobile website page
 and not like one with a Desktop application. Much like Facebook mobile
 in which we can add a display=wap url variable to the authorize
 page.

 How can I do this with twitter mobile. Please help me out, I'm in a
 pickle here...


[twitter-dev] Re: since_id confusion

2010-06-28 Thread Terence Eden
To make this slightly clearer Imagine I have retrieved a page with
20 statuses.  Status IDs are

60 ... 40

Calling the timeline with max_id=40count=20 allows me to step back in
time.  It gives me

40 ... 20

Suppose I just want to see *next* 20 tweets since status_id 60?
I would expect calling the timeline with since_id=60count=20 to give
me

80 ... 60

It doesn't.  It gives me
100 ... 80.
That is, the 20 most recent tweets from *now*.  I want the reverse of
that.  The 20 tweets from *since_id*.

Is there any way to get that?  I don't want to call the 200 most
recent tweets and try to find the 20 I'm looking for, partly on
bandwidth  processing grounds, but also, if the user is, say, 300
tweets deep into their timeline, they'll miss tweets.

Thanks

Terence

On Jun 26, 3:52 pm, Terence Eden terence.e...@gmail.com wrote:
 Am I mistaken in how since_id works?

 Callinghttp://api.twitter.com/1/statuses/home_timeline.json?count=20max_id=...
 Gives me the *next* 20 tweets from 1234

 However, calling with 
 since_idhttp://api.twitter.com/1/statuses/home_timeline.json?count=20since_i...
 Gives me the *first* 20 tweets in the timeline.  I was expecting it to
 show the 20 tweets *from* 1234

 Am I the only one with this confusion? Or is there a better way to
 just retrieve the first 20 tweets which have occurred since?

 Thanks

 T
 (Essentially, I'm implementing older and newer buttons which always
 show older/newer tweets, rather than pages.)


[twitter-dev] since_id confusion

2010-06-26 Thread Terence Eden
Am I mistaken in how since_id works?

Calling
http://api.twitter.com/1/statuses/home_timeline.json?count=20max_id=1234
Gives me the *next* 20 tweets from 1234

However, calling with since_id
http://api.twitter.com/1/statuses/home_timeline.json?count=20since_id=1234
Gives me the *first* 20 tweets in the timeline.  I was expecting it to
show the 20 tweets *from* 1234

Am I the only one with this confusion? Or is there a better way to
just retrieve the first 20 tweets which have occurred since?

Thanks

T
(Essentially, I'm implementing older and newer buttons which always
show older/newer tweets, rather than pages.)


[twitter-dev] Re: link wrapping on the API

2010-06-09 Thread Terence Eden
Would it be possible to use a 3rd party URL lengthener (like
http://longurlplease.com/) then use that?

Alice posts bit.ly/foo
Twitter changes it to t.co/bar
LongUrl returns bit.ly/foo resolves to example.com
App shows a href=http://t.co/bar;example.com/a
When Bob clicks on example.com, he hits t.co, which then redirects to
bit.ly, which then redirects to example.

Aside from the annoyance / speed on a mobile of seeing the page reload
several times (assuming example.com doesn't redirect) does that seems
to be ok?

Terence

On Jun 9, 10:04 am, artesea ryancul...@gmail.com wrote:
 At present my code reads a tweet in plain text format. It then adds
 a tags to any links, the @username and the #tags. It then looks for
 twitpic/flickr/youtube etc urls it will add a clickable thumbnail to
 the top of the tweet.
 As I can see it, my code will need to put the t.co in the a tag, do
 a lookup on the full url and replace the t.co in the text of the
 tweet, check for twitpic links, add the thumbnail, BUT ensure that the
 link on the thumbnail goes via t.co else it will be a breach of the
 TOS.
 Will not parsing the image url and displaying the thumbnail in the
 first place be a breach of the TOS as I haven't sent the users browser
 via t.co?

 To repeat another request will you be providing search results with
 words inside the URLs redirects like you already do for tinyurl
 bit.ly?

 Also two weeks, with just a couple of feeds to test against and no
 sample code???

 On Jun 9, 9:45 am, Rich rhyl...@gmail.com wrote:

  Please make sure the timeline for this is LONGER than 2 weeks please,
  some of us have to code this and then wait at least a week to get
  through Apple's approval system.  This is especially important when it
  comes to detecting images, etc.

  Richard

  On Jun 9, 4:27 am, Raffi Krikorian ra...@twitter.com wrote:

   yeah - its definitely case that counting characters will become a bit more
   subtle.  i hope that we can provide a really good and easy way to help you
   all out.  at the very least we are going to update documentation, but i 
   know
   we can do better than that.

   On Tue, Jun 8, 2010 at 8:17 PM, Andy Matsubara 
   andymatsub...@gmail.comwrote:

Raffi wrote:
 related to this: the way the Twitter API counts characters is going to
change ever so slightly. our 140
 characters is now going to be defined as 140 characters after link
wrapping. t.co links are of a
 predictable length -- they will always be 20 characters. after we make
this live, it will be feasible to
 send in the text for a status that is greater than 140 characters. the
rule is after the link wrapping,
 the text transforms to 140 characters or fewer. we'll be using the 
 same
logic that is in twitter-text-rb
 to figure out what is a URL.
I guess this change will make frontend text handling more difficult.
Counting characters in a text box must figure out what is a URL. I
hope Twitter will publish JavaScript library for realtime character
counts. I also want APIs to make shortened URL.

Andy Matsubara

   --
   Raffi Krikorian
   Twitter Platform Teamhttp://twitter.com/raffi


[twitter-dev] Re: icon size issue

2010-03-03 Thread Terence Eden
Noted in issue http://code.google.com/p/twitter-api/issues/detail?id=601

If you're developing for mobile, try http://tinysrc.net/ to
dynamically resize the avatars.

On Feb 27, 1:44 am, eco_bach bac...@gmail.com wrote:
 Anyone know what the eta is for fixing the icon size issue?
 I just came across 1 that was 432X432 pixels!!!

 Obviously won't work for mobile...


[twitter-dev] Re: Why does status/followers require auth?

2010-02-24 Thread Terence Eden
Raised as an issue
http://code.google.com/p/twitter-api/issues/detail?id=1480

On Feb 21, 6:06 pm, Abraham Williams 4bra...@gmail.com wrote:
 This also applies to the social graph methods which is very frustrating for
 my Intersect extension. [1]

 Abraham

 [1]https://chrome.google.com/extensions/detail/npdjhmblakdjfnnajeomfbogo...



 On Sun, Feb 21, 2010 at 01:27, Terence Eden terence.e...@gmail.com wrote:
  From
 http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0f...

  Requires Authentication (about authentication):
  false unless requesting it from a protected user; if getting this data
  of a protected user, you must auth (and be allowed to see that user).

  But, if I am logged in tohttp://twitter.com/I *can* see a protected
  user's friends and followers - even if I'm not following them.

  Anyone know the reason for this inconsistency?

  Also the same for status/friends.

  Thanks

  T

 --
 Abraham Williams | Community Advocate |http://abrah.am
 Project | Out Loud |http://outloud.labs.poseurtech.com
 This email is: [ ] shareable [x] ask first [ ] private.
 Sent from Seattle, WA, United States


[twitter-dev] Why does status/followers require auth?

2010-02-21 Thread Terence Eden
From 
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0followers

Requires Authentication (about authentication):
false unless requesting it from a protected user; if getting this data
of a protected user, you must auth (and be allowed to see that user).

But, if I am logged in to http://twitter.com/ I *can* see a protected
user's friends and followers - even if I'm not following them.

Anyone know the reason for this inconsistency?

Also the same for status/friends.

Thanks

T


[twitter-dev] Re: inconsistency in User Icon pixel sizes and file formats.

2010-02-18 Thread Terence Eden
This error has been reported at
http://code.google.com/p/twitter-api/issues/detail?id=1182

Please add a star to it to stay informed.

On Feb 18, 3:35 am, eco_bach bac...@gmail.com wrote:
 Hi
 In building a twitter search application I was surprised to find out
 that there is a inconsistency in User Icon actual pixel sizes.
 Is there any reason for this?
 Why can't Twitter automatically resize image icons if they are too
 large?
 And better yet, convert the occasional .bmp format into .jpg?


[twitter-dev] Re: What's up with OAuth?

2010-02-12 Thread Terence Eden
Will mobile OAuth be fixed for all users before this goes live?
See http://code.google.com/p/twitter-api/issues/detail?id=395 for
details.

On Feb 12, 3:18 am, Raffi Krikorian ra...@twitter.com wrote:
 hi all.

 this is a long overdue e-mail, but i wanted to tease out some of the
 directions that Twitter is going with OAuth.  i want to touch upon four
 topics: delegation, OAuth WRAP/2.0, username/password OAuth token exchange,
 and basic authentication deprecation.


[twitter-dev] Re: Mobile OAuth fix is LIVE

2010-02-06 Thread Terence Eden
Can you let us know the current supported User Agents?  That way I can
direct our users to it if I am certain their phones are supported.

Thanks

T

On Feb 6, 4:39 am, Ryan Sarver rsar...@twitter.com wrote:
 Ill talk with the team and figure out if it's better to roll it back or just
 limit it to the known, working user agents



[twitter-dev] Re: Mobile OAuth fix is LIVE

2010-02-04 Thread Terence Eden
Buttons *NOT* clickable on BlackBerry Bold Browser (OS4.6).
Have tried with and without Javascript enabled.

Can provide headers etc if needed.

Thanks for this update - it looks amazing.  Should really ramp up
security  usability.

On Feb 3, 11:16 pm, Ryan Sarver rsar...@twitter.com wrote:
 FINALLY!

 An update has just gone live that fixes rendering of the OAuth screens for
 most mobile devices. We also fixed a few small nagging things like the
 default action is now allow instead of deny if you just hit go on an
 iPhone. I've attached two screenshots so you can see the updated screens.

 Please test it out with your various mobile web apps and let us know if you
 run into any problems or edge cases.

 Ryan

  IMG_0739.png
 93KViewDownload

  IMG_0738.png
 75KViewDownload


[twitter-dev] Re: rate limit: plz reply as soon as possible : urgent

2010-01-07 Thread Terence Eden
From what I can tell, you're trying to get all of XYZ's friends - then
see all of the friends of each of them.  Is that right?

My first question is Why?
Depending on what you are trying to do, there may be a better way to
achieve it.

If there really is no other way, you can apply for whitelisting at
http://twitter.com/help/request_whitelisting

T

On Jan 5, 6:02 am, viv k57...@gmail.com wrote:
 I am frequently hitting rate limit. i know it happens when you do
 more
 than 150 search API call in a hour
 int a[] =twitter.getFriendsIDs(xyz).getIDs();
 int b[][] = new int[a.length][]
 for(int i=0;ia.length;i++)
 b[i] = twitter.getFriendsIDs(a[i]).getIDs();
  now the problem is a.length = 148 , that xyz has 148 friends
 and when we go on to compute b[i], it exceeds 150 and face rate limit
 problem
 is there any way to encounter this rate limit problem, without
 increasing rate limit 20,000 by asking twitter