[twitter-dev] How to shorten url from API?

2011-04-23 Thread Dmitri Snytkine
Hello!
Is there a way to get the shortened t.co url from the API?
I need to shorted a url before posting tweet via API. How should I do
this? Is this supported by Twitter API or do I have to use some other
url shortener like bit.ly?

-- 
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: Get Found In Google in 5 minutes

2011-04-23 Thread Dmitri Snytkine
5 Minutes is too long. I like to be found in Google in milliseconds!

On Apr 23, 12:53 pm, Wildenis Creations wildeniscreati...@gmail.com
wrote:
 Hi Guys just designed a formula to get found in Google in minutes! Who's
 interested to learn the skills

-- 
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: Coming soon: a solution for Open Source applications using OAuth with the Twitter API

2010-06-11 Thread Dmitri Snytkine
Interesting idea.

On Jun 11, 6:56 pm, Taylor Singletary taylorsinglet...@twitter.com
wrote:
 Hi Developers,

 As has been discussed on the list recently, OAuth and Open Source
 applications are a difficult combination because token secrets shouldn't be
 embedded in widely distributed code.

 We're pleased to announce that we've devised a solution to this problem.

 Next week, we plan to release a new extension to the Twitter API that will
 allow Open Source applications to obtain OAuth consumer keys and secrets for
 their users, without having to distribute an application secret.

 Approved Open Source client applications will have an easy to implement
 ability, through dev.twitter.com, to generate new client tokens  secrets to
 be used specifically for each new instance of the application.

 While completing the process does require the end-user to complete a few
 extra operations, we think this is a good compromise.

 The source tag on tweets published by the child applications generated with
 this approach will be a variation on the originating application's name. For
 examples, if the name of the parent application was AdventureTweet and the
 user's screen name was @zork, then the child application's name would be
 AdventureTweet (zork).

 The work flow for these applications will be something like this:

   1. You store your API Consumer Key in your application distribution (but
 never your secret!).
   2. A user downloads/installs/checks out your open source application and
 runs it for the first time
   3. Your application builds a URL to our key exchange endpoint, using your
 consumer key.
       
 Example:http://dev.twitter.com/apps/key_exchange?oauth_consumer_key=abcdefghi...
   4. You send the user to that URL in whatever way makes sense in your
 environment.
   5. That user will have to login using their Twitter credentials (if they
 aren't already), and then approve your application's request to replicate
 itself on the user's behalf.
   6. The approval will require that the user agrees to our terms of service,
 as this process results in them having control of their own application
   7. The user is presented with a string that they are asked to paste into
 your application. The string will contain ah API key and secret, in addition
 to an access token and token secret for the member: everything that's needed
 to get the user up and running in your application.
   8. The user pastes the string into your application, which then consumes
 and stores it to begin performing API calls using OAuth.

 The string containing the keys will be x-www-form-urlencoded. To keep the
 string brief, it will contain abbreviated key names.

 An example:
 ck=KIyzzZUM7KvKYOpnst2aOwcs=4PQk1eH4MadmzzEZ1G1KdrWHIFC1IPxv1kXZg0G3Eat=542212-utEhFTv5GZZcc2R4w6thnApKtf1N1eKRedcFJthdeAats=FFdeOEwxOBWPPREd55dKx7AAaI8NfpK7xnibv4Yls

 Where: ck - consumer key, cs - consumer secret, at - access token,
 ats - access token secret

 This kind of key requisition service is new to the Twitter ecosystem, and
 we're going to be closely monitoring it for abuse. Once we announce its
 availability, we'll begin taking requests for Open Source applications that
 would like to offer the feature in their application.

 We're excited to offer this solution to the open source community. Thanks
 everyone!

 Taylor Singletary
 Developer Advocate, Twitterhttp://twitter.com/episod


[twitter-dev] What's Twitter policy regarding porn?

2010-04-23 Thread Dmitri Snytkine
Hello!

I have to know this: first off all, there are lots of tweets out there
that send links to porn images and stuff like that.
Is this allowed?

Second, if this is allowed, then can I develop an app that aggregates
such tweets (that have links to porn images?) as well as sending out
tweets that will include links to porn images?



-- 
Subscription settings: 
http://groups.google.com/group/twitter-development-talk/subscribe?hl=en


[twitter-dev] Re: What's happening with Tweetie for Mac

2010-04-12 Thread Dmitri Snytkine
While this is bad news to handful of iPhone based app developers, it's
a great news for millions of iphone users who will be able to get
Twitter app for free.



On Apr 12, 2:46 pm, Eric Woodward e...@nambu.com wrote:
 Ryan,

 Thanks for clarifying, finally, at least. Rebranded Twitter or not,
 Tweetie as owned and developed by Twitter basically reinforces and
 confirms everything that we posted on the Nambu blog this morning:
 Twitter will take anything significant built around Twitter for
 itself, 100%.

 Twitter is now officially developing native applications on three
 platforms: iPhone OS, OSX and Blackberry, all free. Simply brutal. But
 I am not nearly affected as the iPhone developers. They should be
 rightfully livid that Twitter moved to wipe them out and take all
 advertising revenue (iAd and other stuff) on the iPhone and iPad for
 themselves rather than share it, as almost all other platforms do.
 Pretty sad. Make no mistake, Twitter for iPhone will take all
 significant market share, and there is nothing any of the developers
 there that have done great work can do about it. If you do not see
 this, you do not understand the basics of business.

 Making Tweetie free is pretty brutal as well, but only because Twitter
 is doing it. Everyone else should be put on notice that you will be
 next, as we have been.

 Mr. Wilson and Twitter, with these moves, and have basically told
 everyone of competence that they must accept their development efforts
 as only ending up as a nice lifestyle business. Anything more, and
 Twitter will move to take it from you, simple as that.

 --ejw

 Eric Woodward
 Email: e...@nambuc.om

 On Apr 12, 10:39 am, Michael Macasek mich...@oneforty.com wrote:

  Ryan,

  Great news thanks for the update!

  Jesse,

  Well said.

  On Apr 12, 10:40 am, Ryan Sarver rsar...@twitter.com wrote:

   One more from me. People have been asking for specific details around
   Tweetie for Mac and I wanted to make sure we clearly message our plans
   as we know it. To be clear, Tweetie for the iPhone and it's developer,
   Loren Brichter, were the focus of our acquisition, but as part of the
   deal we also got Tweetie for Mac.

   Loren had been hard at work on a new version of Tweetie for Mac that
   he was going to release soon. Our plan is to still release the new
   version and it will continue to be called Tweetie (not renamed to
   Twitter). We will also discontinue the paid version.

   Hope that's clear. Please let me know if you have any questions.

   Best, Ryan


-- 
To unsubscribe, reply using remove me as the subject.


[twitter-dev] How to add my app to app wiki?

2010-03-21 Thread Dmitri Snytkine
Hello!

I recently built by first Twitter app.

http://qod.tw

Is it possible to add it to Twitter apps wiki here: 
http://twitter.pbworks.com/Apps

I don't see any ways to submit your app, so does anybody know who to
contact about it?

Thanks.

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words REMOVE ME as the subject.


[twitter-dev] Is this legit Twitter API?

2010-03-11 Thread Dmitri Snytkine
Yesterday I noticed a javascript prompt on one Tumblr blog asking for
Twitter username/password
I thought it was some kind of new phishing scam, I even wanted to
report it to Twitter.

Now I just saw the link sent from @twitterapi account and it also does
the same thing - asking for username/password

http://api.twitter.com/1/users/lookup.xml?user_id=12863272,3191321,9160152,8285392,795649,15266205

What is this? Is this legit? I thought we have come a long way with
oAuth so no app should even ask for user's Twitter username/password.
If this is a legit javascript based API from Twitter, then it stinks



[twitter-dev] cannot add status to favories with API

2010-03-10 Thread Dmitri Snytkine
Hello!
I want to add a status to another user's favories but apparantly the
api cannot do that.

I want to add message created by one user to favorites of another
user.

When doing it from api it refuses to add favorite probably because the
status id was not created by the same user to whom I want to add this
favorite.

I am looking at instructions here
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-favorites%C2%A0create

It does not let you specify the username of status creator.

I am using this url with a POST method:

http://api.twitter.com/1/favorites/create/2147483647.json

The status 2147483647 was created by different user (not the same user
to whom I want to add this to favorite)

but then getting this error 404 with this message:
{request:/1/favorites/create/2147483647.json,error:Not found}

How can I change the request in order for this to work?


[twitter-dev] Re: cannot add status to favories with API

2010-03-10 Thread Dmitri Snytkine
Hah, apparently PHP doesn't understand integers larger than
2147483647,
so when casting larger number to integer, it automatically becomes
2147483647

This is something new, but that's how it is: in php $status =
'10279397649'; $status = (int)$status;
php chokes on any number larger than 2147483647 and instead of
throwing an error in quietly returns
the largest integer in it knows, 2147483647

I did not expect this from a fairly new version of php 5.2.9


On Mar 10, 4:27 pm, Abraham Williams 4bra...@gmail.com wrote:
 There is no status with that 
 ID:https://api.twitter.com/statuses/show/2147483647.xml

 Abraham



 On Wed, Mar 10, 2010 at 12:41, Dmitri Snytkine d.snytk...@gmail.com wrote:
  Hello!
  I want to add a status to another user's favories but apparantly the
  api cannot do that.

  I want to add message created by one user to favorites of another
  user.

  When doing it from api it refuses to add favorite probably because the
  status id was not created by the same user to whom I want to add this
  favorite.

  I am looking at instructions here
 http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-favorites%C2%A0...

  It does not let you specify the username of status creator.

  I am using this url with a POST method:

 http://api.twitter.com/1/favorites/create/2147483647.json

  The status 2147483647 was created by different user (not the same user
  to whom I want to add this to favorite)

  but then getting this error 404 with this message:
  {request:/1/favorites/create/2147483647.json,error:Not found}

  How can I change the request in order for this to work?

 --
 Abraham Williams | Community Advocate |http://abrah.am
 TwitterOAuth |http://github.com/abraham/twitteroauth
 This email is: [ ] shareable [x] ask first [ ] private.


[twitter-dev] Which api url to use?

2010-02-22 Thread Dmitri Snytkine
Is there a difference between using
http://api.twitter.com/1/statuses/update.format
and
http://api.twitter.com/statuses/update.format  (without the /1/)?


[twitter-dev] Re: Twitter API and ETags - No 304s?

2010-02-21 Thread Dmitri Snytkine
I noticed this too, also noticed that Twitter sends no-cache header
and expiration far in the past, which is just another way to tell
browser not to cache anything.

You can find my recent post here under subject Why do you sent no-
cache headers

I don't know why they sending Etag then, looks like it's half-
implemented, maybe they are still working on implementing the correct
way to deal with conditional requests.

Since they probably don't store static files, it requires some extra
programming to parse the conditional requests and then decide if to
return 304 Not modified or an actual 200 response.


On Feb 21, 9:31 pm, Tim Haines tmhai...@gmail.com wrote:
 Hey guys,

 The Twitter API returns ETags, that seem to change when the content
 changes and otherwise not.  It doesn't seem to return 304's when the
 same ETag is sent back to it though.

 Has anyone seen it send 304s?

 I'm making calls against the method to retrieve favorited tweets.

 Tim.


[twitter-dev] Re: disparities between bit.ly Google Analytics?

2010-02-21 Thread Dmitri Snytkine
I would stick with Google Analytics. I think they take out all the
requests by search bots and all duplicate requests and report actual
legit requests by users.

Who knows how bit.ly does their click tracking, I sure don't

On Feb 21, 9:36 pm, neal rauhauser nrauhau...@gmail.com wrote:
    Is anyone else seeing dramatic disparities between what bit.ly reports
 and what Google Analytics reports in terms of clicks? We're seeing like 10:1
 over reporting from bit.ly ... if Google Analytics is right.

 --
 mailto:n...@layer3arts.com //
 GoogleTalk: nrauhau...@gmail.com
 GV: 202-642-1717


[twitter-dev] Why do you sent no-cache headers?

2010-02-20 Thread Dmitri Snytkine
Hello Twitter dev team!
I am wondering, why don't you take advantage of Cache control headers
when processing requests for user's profiles?

For example, a url of profile (which does not require api key or any
type of authentication and can be used by anyone)

http://api.twitter.com/1/users/show.json?user_id=52146756

It has this header:
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-
check=0

So a browser or server cannot cache this, but why?

It looks like you do report the Last-Modified header and even the Etag
So it would be much more efficient if you would just reply with a 304
Not modified header
if request contains the If-Modified-Since value

Do you support conditional requests with If-Modified-Since and with If-
None-Match headers?





[twitter-dev] Re: The XML for user settings would be helpful

2010-02-20 Thread Dmitri Snytkine
How can it be counted if no api key is used? Do you mean its counted
against the ip address?

On Feb 19, 12:06 pm, alexro arodyg...@gmail.com wrote:
 Dmitri,

 I believe such request still counts against your usage limit. Just to
 remember to stay within the boundaries :)

 On Feb 18, 10:15 pm, Dmitri Snytkine d.snytk...@gmail.com wrote:

  Sorry to bother you, but I found out that this feature is already
  available
  Turns out I can easily get user's  profile as json or xml without
  using oAuth or API

  Very simple, like this:

 http://api.twitter.com/1/users/show/MythBusters.json
  This is just great!

  On Feb 18, 3:36 pm, Dmitri Snytkine d.snytk...@gmail.com wrote:

   I just though of something that would be very helpful to developers:
   what if there was a url to get xml or json of user's profile,
   background image, color settings and avatar.
   I mean similar to regular RSS feed, only for the current user's
   settings.

   This way we don't even need to use API if we want to generate a page
   that looks like user's own twitter page. And because it would be
   static files, they could be served from Twitter very fast and make use
   last-modified and etag headers.

   Currently if I want to style a page to mimin user's twitter page, I
   have to access thehttps://twitter.com/account/verify_credentials.json
   and for that I have to use oAuth call. But this is an overkill. Why do
   I even need to have user's token and secret just to get his latest
   profile that is basically available on his twitter page, I just don't
   want to to and scrape it from the actual twitter page.

   Why not give us the url to get these settings as json or xml the same
   way we can get the RSS for user's latest messages without having to
   use API




[twitter-dev] Re: Forum API on twitter

2010-02-18 Thread Dmitri Snytkine
Sounds like an interesting idea. I also thought about writing a forum
app like that because I am not satisfied with how twitter displays
replies.

I am sure it can be done with existing API, just a matter of writing a
good app which must be fast.

If you or anyone else wants to collaborate of starting an open source
project like this, I am interested to work on it. I have 10 years of
experience in php so can only work on php based app with heavy ajax
usage.

On Feb 17, 9:46 am, Bertrand Azzopardi bertrandazzopa...@gmail.com
wrote:
 Hi I would like to create a twitter application which retrieves
 information from a website and puts them on twitter.  The idea is
 having a forum on the website where people can post their own comments
 and even reply to a posted comment.  The forum must be updated both on
 twitter and the website irrelvant where the user entered the info.
 Would this be possible using any existant tools?  If so would it be
 possible to provide me some links?

 I thank you in advance and hope to hear from you soon.


[twitter-dev] Re: Global twitter profile image URL

2010-02-18 Thread Dmitri Snytkine
I agree that having gravatar-style service for twitter avatars will be
tremendously useful!

Even better, if avatars are stored in .png ONLY, in which case you can
just use the url without even checking with gravatar-like service.
For example just put avatar.twitter.com/23423423423423.png (by twitter
id) or maybe even by username.png

Done! The http configuration will then have a custom directive to
return a default avatar if user-specific one does not exist

The png is good choice because it can be animated and support
transparency. Just convert uploaded jpg or gif images to .png and they
good to go.

Then, a web based app can just generate a path to avatar based on
username or userid and at least the default avatar will be shown. If
user updates the avatar, then the current one will be shown,
eliminating the need to check with API. Developers can add ?timestamp
to image to disable browser caching if they want to.



On Feb 17, 5:38 pm, Abraham Williams 4bra...@gmail.com wrote:
 I would image that implementing S3 versioning would be pretty easy and would
 rid your systems of a whole bunch of complexity.

 http://groups.google.com/group/twitter-development-talk/browse_thread...

 Abraham



 On Tue, Feb 16, 2010 at 12:51, Raffi Krikorian ra...@twitter.com wrote:
  probably more than a single day :P

  yes - we have thought about it...  its low on our priority list right now,
  however.

  On Tue, Feb 16, 2010 at 12:17 PM, Peter Kieltyka peter.kielt...@gmail.com
   wrote:

  Hey guys,

  I was wondering if twitter has any plans to offer a global URL to each
  user's profile pic? This would be very handy for third party apps
  built on top of Twitter. Grabbing the profile_image_url which links
  directly to the S3 URL, is susceptible to change and requires a lot of
  effort on the dev's part to make sure its always up to date and
  working.

  Consider something like gravatar.com, but for twitter users. There is
  the thehttp://tweetimag.esservice, which works great, but for
  something so close to the infrastructure I feel this type of service
  should be built and supported by twitter itself.

  I think tweetimag.es has nailed the API as in:

  ie. Hopefully something like:

 http://twimg.com/pkieltyka_m
 http://twimg.com/pkieltyka_n
 http://twimg.com/pkieltyka_b
 http://twimg.com/pkieltyka_o

  if twitter continue's to use S3, it would be very simple to setup a
  CNAME for twimg.com that points to an S3 bucket and each reference to
  a username's profile can be down-cased and append the _SIZE. Simple.

  Should take about a single day to implement this :)

  Cheers.

  Peter

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

 --
 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] Re: Whats the best practice for caching data?

2010-02-18 Thread Dmitri Snytkine
Thank you for reply.
I realize this is not an easy question, gives me headache to think
about the best way to implement it.
The flow of login/signup in my app is probably very common: after user
signsup with oauth,
I get user data, pass it to createAccount() method which just records
the user data into the database
and if user with the same twitter id already exists it will just
update the record.
This is easy part, can either user REPLACE INTO (mysql only)
Or test if userid exists then do insert or update.

So basically on signin with Twitter I alwasy get the fresh data and
update the record.

But then I set the unique cookie that is tied to twitter ID and then
can login user by cookie. This is where I cannot decide what to do:
I can just get the record from database using this unique cookie and
use it as user data. This will be the fastest way to create
the viewer object but the data is not fresh. What if user has updated
his profile in Twitter, then he will see an outdated description,
possibly outdated links, etc.

So the solution is to login by cookie this way: get record from DB
based on cookie. Use the user's token, secret from that record and get
the fresh data, update the record in DB. Basically a full
synchronization of record in every login by cookie (in every repeat
visit to site)

This may add too much load to the database and network, especially if
thousands of users come to the site  suddenly.

Maybe there is another middle ground solution - get the data from
Twitter via cache system, so if record exists in cache, use it, if
not, get data from Twitter API and put in cache for 24 hours. This way
data will not be always fresh, but will at least be guaranteed to be
not older than 24 hours.





On Feb 18, 3:01 am, Dave Sherohman d...@fishtwits.com wrote:
 On Wed, Feb 17, 2010 at 05:52:28PM -0800, Dmitri Snytkine wrote:
  I have 2 choices: store the data in the database and put cookie in
  user's browser and next time user visits, I can just pull the
  username, name, etc from my database

  Or I can use user's access token/secret that I also store in database
  to get the fresh data from Twitter.

  Getting fresh data will guarantee that I have user's latest color
  settings, background, avatar, description
  But I may run over 150 requests per hour very easily.

  How is this usually done by other app developers? What's the best
  practice for synchronizing user's settings with Twitter?

 The way I'm doing it on FishTwits is to cache the most recent profile
 data for each user.  So I'm basically doing your first option (store it
 in the database), but refreshing it with the latest fresh profile data
 whenever I send or retrieve a status update for the user - that
 information is already coming back with the status, so I can update it
 without having to wait for any extra requests to complete.

 --
 Dave Sherohman


[twitter-dev] The XML for user settings would be helpful

2010-02-18 Thread Dmitri Snytkine
I just though of something that would be very helpful to developers:
what if there was a url to get xml or json of user's profile,
background image, color settings and avatar.
I mean similar to regular RSS feed, only for the current user's
settings.

This way we don't even need to use API if we want to generate a page
that looks like user's own twitter page. And because it would be
static files, they could be served from Twitter very fast and make use
last-modified and etag headers.

Currently if I want to style a page to mimin user's twitter page, I
have to access the
https://twitter.com/account/verify_credentials.json
and for that I have to use oAuth call. But this is an overkill. Why do
I even need to have user's token and secret just to get his latest
profile that is basically available on his twitter page, I just don't
want to to and scrape it from the actual twitter page.

Why not give us the url to get these settings as json or xml the same
way we can get the RSS for user's latest messages without having to
use API


[twitter-dev] Re: The XML for user settings would be helpful

2010-02-18 Thread Dmitri Snytkine
Sorry to bother you, but I found out that this feature is already
available
Turns out I can easily get user's  profile as json or xml without
using oAuth or API

Very simple, like this:

http://api.twitter.com/1/users/show/MythBusters.json
This is just great!


On Feb 18, 3:36 pm, Dmitri Snytkine d.snytk...@gmail.com wrote:
 I just though of something that would be very helpful to developers:
 what if there was a url to get xml or json of user's profile,
 background image, color settings and avatar.
 I mean similar to regular RSS feed, only for the current user's
 settings.

 This way we don't even need to use API if we want to generate a page
 that looks like user's own twitter page. And because it would be
 static files, they could be served from Twitter very fast and make use
 last-modified and etag headers.

 Currently if I want to style a page to mimin user's twitter page, I
 have to access thehttps://twitter.com/account/verify_credentials.json
 and for that I have to use oAuth call. But this is an overkill. Why do
 I even need to have user's token and secret just to get his latest
 profile that is basically available on his twitter page, I just don't
 want to to and scrape it from the actual twitter page.

 Why not give us the url to get these settings as json or xml the same
 way we can get the RSS for user's latest messages without having to
 use API


[twitter-dev] Is it OK to store token in COOKIE?

2010-02-17 Thread Dmitri Snytkine
Just wondering, is it a bad practive for a web-based app to store
user's token and secret in cookies?
This would of cause simplify and speed up the login, but is it a
security risk?


[twitter-dev] Whats the best practice for caching data?

2010-02-17 Thread Dmitri Snytkine
Hello!
I am just starting developing my app. I got the oAuth thing to work
using pecl oauth, which is great and was easy.

Now the question: What should I do after user is logged via oAuth, and
after I got array of user data from this url:
https://twitter.com/account/verify_credentials.json

I have 2 choices: store the data in the database and put cookie in
user's browser and next time user visits, I can just pull the
username, name, etc from my database

Or I can use user's access token/secret that I also store in database
to get the fresh data from Twitter.

Getting fresh data will guarantee that I have user's latest color
settings, background, avatar, description
But I may run over 150 requests per hour very easily.

How is this usually done by other app developers? What's the best
practice for synchronizing user's settings with Twitter?


[twitter-dev] Looking for example to use popup window to login

2010-02-13 Thread Dmitri Snytkine
Hello!.

I am looking for an example of implementation of login with Twitter
where when user clicks on the login with Twitter,
the Twitter's Allow/Deny page is opened in a small popup window,
then after user has authorized the login, that small window passes the
data to the parent window (I think it's called windows.opener in
javascript) and then the popup closes

I've seen this setup on several sites and I like it much more than
just using the same window to redirect to login screen then back to
the callback url

Does anymore know if a tutorial or example exists for doing this?



[twitter-dev] Is anyone using php pecl oath library?

2010-02-13 Thread Dmitri Snytkine
Hello!
I am trying to decide if to use PECL oauth or twitter-async from here
http://github.com/jmathai/twitter-async/tree

What do most php developers use for implementing login with Twitter?



[twitter-dev] Re: What is the lifespan of the OAuth token?

2010-01-29 Thread Dmitri Snytkine
Thanks. By the way, how does user revoke access to an app to which
they previously logged in?
I mean, if I login to some website with my twitter account using
'login with Twitter', then is there an option anywhere
in the twitter profile to see which websites I have authorized to
access my account and is there an option to revoke that access
permission per website?


On Jan 28, 11:32 pm, Josh Roesslein jroessl...@gmail.com wrote:
 I believe Twitter currently does not expire access tokens.
 They may become invalid in the future due to the user revoking access
 to your application.
 Otherwise it should be good still for a long time.

 Josh

 On Thu, Jan 28, 2010 at 9:19 PM, Dmitri Snytkine d.snytk...@gmail.com wrote:
  Is this the right group to ask about the OAuth implementation?

  I am new to OAuth, just decided to learn more and to try to add Login
  with twitter' to my CMS
  I have a question - how long is the token good for? I mean, is the
  token life somehow tied to a user's session or can I use a token after
  user has left my site, for a relatively long time?

  If I want to create a service like twitlater, where a user creates
  messages and tells the service to send them in a few days or in a
  month, will OAuth work for that or will the token expire before the
  time to send message? I mean the original user who set the 'time to
  send' will not be logged in at that time anymore.

  I'm just not sure if OAuth token will still be valid after a month.

  How long is it good for?

  Thanks.




[twitter-dev] What is the lifespan of the OAuth token?

2010-01-28 Thread Dmitri Snytkine
Is this the right group to ask about the OAuth implementation?

I am new to OAuth, just decided to learn more and to try to add Login
with twitter' to my CMS
I have a question - how long is the token good for? I mean, is the
token life somehow tied to a user's session or can I use a token after
user has left my site, for a relatively long time?

If I want to create a service like twitlater, where a user creates
messages and tells the service to send them in a few days or in a
month, will OAuth work for that or will the token expire before the
time to send message? I mean the original user who set the 'time to
send' will not be logged in at that time anymore.

I'm just not sure if OAuth token will still be valid after a month.

How long is it good for?

Thanks.


[twitter-dev] Re: Can new twitter account be created from API?

2010-01-26 Thread Dmitri Snytkine
If they allow create accounts from API then this is what's going to
happend:
All leading online forum software will implement an option to create
new twitter account for a new forum.
So if you run an online forum like vbulletin, you can have 100 forums,
thus 100 accounts on twitter.

This means that every post make to just about every forum on the
Internet will end up on twitter.
This will add thousands, tens on thousands of updates per second to
twitter. I don't know if they really want it.

For the forum owner this may be great - more traffic to their forums,
for end user also an extra way to follow
his favorite forums.

I am sure if Twitter allows account creation from API, all major forum
and blog/CMS makers will jump right it.


On Jan 26, 10:34 am, Zac Bowling zbowl...@gmail.com wrote:
 Strictly speaking, there is an API of sorts to create accounts, but limited
 to certain partners. Citysearch is using it IIRC. Although it would be great
 for mobile clients because there isn't a nice mobile web page to create an
 account so it takes a PC to get started for new users. Seen a note on it on
 those leaked twitter docs on techcrunch a while back, so the twitter guys
 have been thinking about it.

 On Jan 26, 2010 5:01 AM, John Meyer john.l.me...@gmail.com wrote:

 On 1/25/2010 8:55 PM, Johnny Honestly wrote:   Twitter is a messenger
 system. They want people to ...
 I'm not talking about an API registration, what I'm talking about is either
 a new URL or a modification of the current URL that allows the user to allow
 an app where if the person isn't a twitter user it will let them become one,
 then go back, register the app, and return.


[twitter-dev] Can new twitter account be created from API?

2010-01-25 Thread Dmitri Snytkine
Hello!
I am wondering if it's possible to use the API to create a brand new
Twitter account?
For example, I am developing a forum software, so I want to create a
new twitter account when a new forum is created, so that it can be
used to 'follow this forum on Twitter' feature.

I know the new email address is needed per every new account, but
that's not a problem, since I have a control of
my domain name, I can just instantly generate a valid email address.

Any thoughts on this?


[twitter-dev] Re: Can new twitter account be created from API?

2010-01-25 Thread Dmitri Snytkine
Target for abuse? How? Does Twitter allow to create an extra account
just for a blog so people can follow my blog?
Or do I have to use my personal account and say 'follow me on
Twitter', when I really mean to follow my blog updates?

I just don't see any forums to implement this yet, I am surprised at
that. It seems feasible to add a feature to a forum software that
would send update when a new thread is created on a forum or maybe
even when new reply is made.

Or is the reason this is not implemented anywhere is because this sort
of thing is not allowed by Twitter?


On Jan 25, 10:45 am, Cameron Kaiser spec...@floodgap.com wrote:
  I am wondering if it's possible to use the API to create a brand new
  Twitter account?

 Nope. This would be a rapid target of abuse.

 --
  personal:http://www.cameronkaiser.com/--
   Cameron Kaiser * Floodgap Systems *www.floodgap.com* ckai...@floodgap.com
 -- The faster we go, the rounder we get. -- The Grateful Dead, on relativity 
 --


[twitter-dev] Re: Can new twitter account be created from API?

2010-01-25 Thread Dmitri Snytkine
I understand. It's not against Twitter policy to have multiple
accounts, it's just that you need to manually create each one
and the captcha on the site will prevent robots from auto-creating
one.

So technically I can add a feature the forum software 'follow this
forum on twitter' but the twitter account has to be created by hand.

Is that about right?

On Jan 25, 1:58 pm, John Meyer john.l.me...@gmail.com wrote:
 On 1/25/2010 10:19 AM, Jaanus wrote:

  There are ways to limit abuse for account creation with API-s if they
  really wanted to (rate limiting, captchas etc). But notice that very
  few (AFAIK no) players on the web who use openID or OAuth actually let
  you create an account with any API. In my view, rightly so.

  Notice that if you use OAuth, account creation is a natural part of
  the flow when the user gets redirected to twitter.com. They can create
  an account at that point if they don't yet have one.

 But will it end up redirecting the person at the end of the account
 creation process?