[twitter-dev] Protect/Unprotect accounts using Twitter API

2011-05-16 Thread Gonzalo Larralde
Hi everyone,

Is there any technical way to protect/unprotect accounts using an API call?
Or I have to rely on POSTing to Twitter's setting page?

I want to put a checkbox in a client to make a single tweet public, by
unprotecting the account for a while.

Thanks!

--
Slds,

Gonzalo.

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


Re: [twitter-dev] Protect/Unprotect accounts using Twitter API

2011-05-16 Thread Gonzalo Larralde
Hi Taylor,

Thanks for you fast and complete answer.

There is no way to set the protected state of a single tweet. Toggling
 between the two account-level states effects all tweets issued by that
 author and changing it for the purposes of a single tweet is inadvisable.

 I would recommend that you dismiss the idea of manipulating a dynamic
 protected/unprotected state and pursue an alternative.


I have to disagree with this paragraph. As you've said, the privacy changes
affects all tweets stored in an account, but, if you generate a tweet with
an unprotected account, it's indexed into the public search, and it's added
to the mentions timeline of a mentioned user that is not following the
protected account. That's why I want to toggle this state. In order to let
an user to participate in public hashtags, or answer/mention an user that is
not following him.

Anyway, if there's any other method to do that, please point me and I'll be
happy to do a research about it :-)

Have a nice day!

--
Slds,

Gonzalo.


On Mon, May 16, 2011 at 5:22 PM, Taylor Singletary 
taylorsinglet...@twitter.com wrote:

 Hi Gonzalo,

 There's no way to toggle between protected and unprotected account states
 via the API -- the only valid way to change the setting is for the user to
 do it of their own volition using a web browser while logged in to Twitter
 -- any automation of the submission of that toggle state by POSTing to the
 page outside of the standard user-browser narrative would be very frowned
 upon.

 There is no way to set the protected state of a single tweet. Toggling
 between the two account-level states effects all tweets issued by that
 author and changing it for the purposes of a single tweet is inadvisable.

 I would recommend that you dismiss the idea of manipulating a dynamic
 protected/unprotected state and pursue an alternative.

 @episod http://twitter.com/episod - Taylor Singletary


 On Mon, May 16, 2011 at 12:56 PM, Gonzalo Larralde 
 gonzalolarra...@gmail.com wrote:

 Hi everyone,

 Is there any technical way to protect/unprotect accounts using an API
 call? Or I have to rely on POSTing to Twitter's setting page?

 I want to put a checkbox in a client to make a single tweet public, by
 unprotecting the account for a while.

 Thanks!

 --
 Slds,

 Gonzalo.

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


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


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


Re: [twitter-dev] Protect/Unprotect accounts using Twitter API

2011-05-16 Thread Gonzalo Larralde
When the account is toggled to public, all the tweets are visible to anyone,
and can be indexed by any service. But they're not added to twitter's search
index. Only the tweets made with the account configured as public are
indexed by twitter search. Is the same for mentions.

So, if you change the state of the account tu publish one tweet, in the time
frame where the account is public, anyone can see your TL. The ideal
solution could be a flag at the moment of the status creation, to override
the account protection at the moment that Twitter decides if this tweet
should be sent or not to the public index.

On Mon, May 16, 2011 at 9:15 PM, Damon Parker cartmet...@gmail.com wrote:

  As an aside to this thread...  In regards to changing the status of an
 account from public to private or vice versa, does this only affect the
 tweets coming after the change or does it change the whole user's timeline
 past to present?

 Similarly if an account was private and is toggled to public, do all of the
 previously private tweets all of a sudden become public or just those
 starting after the toggle.  Similarly if an account is public and toggled to
 private.

 thanks


 --
 damonp

 On Monday, May 16, 2011 at 3:22 PM, Taylor Singletary wrote:

 There is no way to set the protected state of a single tweet. Toggling
 between the two account-level states effects all tweets issued by that
 author and changing it for the purposes of a single tweet is inadvisable.


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


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


Re: [twitter-dev] Re: twitter app to be used at a kiosk (aka public computer)

2011-03-08 Thread Gonzalo Larralde
If you have control of the browser used to show the login page, maybe you
can manually reset the cookies of the entire browser when the user finished
the interaction. You can try making a plugin, or even a greasemonkey script
could help.

Or maybe you can apply for XAuth if it is an application and not a webpage.
This will let you handle authentication as you want.

--
Gonzalo.


On Tue, Mar 8, 2011 at 10:35 AM, Chris ch...@deliens.be wrote:

 Thanks for your reply Abraham.
 Unfortunately, that is not an option in my case.

 I remember running into the same troubles last year with Facebook, but
 there was a solution: we can call a logout URL on facebook.com with a
 security token and an URL to redirect to as a querystring parameters.

 I wish there was the same at Twitter!



 On Mar 8, 1:10 am, Abraham Williams 4bra...@gmail.com wrote:
  The best work around I currently know of is after users logout of your
 site
  to display a prompt reminding them to logout of twitter.com too.
 
  Abraham
  -
  Abraham Williams | Hacker Advocate | abrah.am
   http://abrah.amJust launched from Answerly http://answerly.com:
  InboxQhttp://inboxq.comfor Chrome
  @abraham https://twitter.com/abraham | github.com/abraham |
 blog.abrah.am
  This email is: [ ] shareable [x] ask first [ ] private.
 
 
 
 
 
 
 
  On Mon, Mar 7, 2011 at 14:11, Chris ch...@deliens.be wrote:
   Hi,
 
   We are currently developing a twitter app to allow people to tweet
   what they experienced at a fair, from a public computer.
 
   everything works fine except that users stays logged in when using the
   oauth/authenticate or oauth/authorize mehods.
 
   appending the force_login=true parameter to the oauth/authenticate
   actually forces the login screen to display (that's kind of a fix for
   now...), but this is a security risk, as the previous user is still
   logged in ;)
 
   I found that an issue (#1453 -
  http://code.google.com/p/twitter-api/issues/detail?id=1453)
   was opened over a year ago states this, but no updates...
 
   does anyone know a way to logout a user programmatically or at least
   prevent twitter.com for storing its authentication cookies after a
   successful login?
 
   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

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


Re: [twitter-dev] Maximum username length

2010-10-18 Thread Gonzalo Larralde
On Thu, Mar 11, 2010 at 7:12 AM, Nick Telford
nick.telf...@tweetmeme.com wrote:
 Hi everyone,

 Can we get a clarification on the maximum length of a username? The
 twitter.com frontend refuses to accept anything over 15 characters,
 and I'm fairly sure 15 characters is mentioned elsewhere in some
 documentation.

 However, we're seeing an increasing number of users who have (somehow)
 managed to register with a longer username:

 http://twitter.com/toasteroverheated
 http://twitter.com/veganstraightedge
 http://twitter.com/Laura_Villas_Boas
 http://twitter.com/colepatrickturner

 The number of user's that have managed to generate usernames over 15
 characters in length is increasing, although not by a lot. It wouldn't
 surprise me if there are  100 users affected.

 A clarification on the absolute limit would be useful for us to
 determine how best to optimise our storage of usernames.

I think it's really important get an specific definition on which
usernames we may expect historically, and what's the actual username
criteria.

Can any twitter dev explain how we may validate usernames and what's
the best way to store them into a db?

Thanks!

-- 
Slds,

Gonzalo.

-- 
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] Firehose bandwidth requirements

2010-08-04 Thread Gonzalo Larralde
Hi!

I'm trying to find an estimation/report of the bandwidth requirements to
download the firehose stream. Anyone here can share this information?

Thanks!

Gonzalo.


[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Gonzalo Larralde

On Sat, Aug 22, 2009 at 1:17 AM, TCI ticoconid...@gmail.com wrote:

 Recently you added nofollow's, and now you moved the nofollow after
 the href. Some of us filter these out and you changing them is only
 making it more complicated. Please make up your mind and stop changing
 these...

 a href=http://fun140.com/;Fun140/a

 a rel=nofollow href=http://fun140.com/;Fun140/a

 a href=http://fun140.com/; rel=nofollowFun140/a

Or, maybe, you can try using this regex:

/a.*? href=(.*?).*?(.*?)\/a/

and let them do whatever they want.
--
Gonzalo.

PS: My english sucks, sorry about that.


[twitter-dev] Re: Stop playing around with Source parameters

2009-08-22 Thread Gonzalo Larralde

On Sat, Aug 22, 2009 at 5:18 AM, PJBpjbmancun...@gmail.com wrote:
 Hehehe... your regex isn't much better!

 /a\s+(.*?\s+)?href=[']?(.+?)[']?(\s+.*?)?(.+?)\/a/is

 On Aug 21, 9:54 pm, Gonzalo Larralde gonzalolarra...@gmail.com
 wrote:
 Or, maybe, you can try using this regex:

 /a.*? href=(.*?).*?(.*?)\/a/

 and let them do whatever they want.

KISS! You'll *never* get an area href= in that field :)

rant
{{{
/a\s+(.*?\s+)?href=[']?(.+?)[']?(\s+.*?)?(.+?)\/a\s*/is
}}}
Oh, look, now mine is better than yours!
Jury, jury, come here now please! Which one is better? (?)
/rant

:P

--
Gonzalo.

PS: My english sucks, sorry about that.


[twitter-dev] Re: FW: Twitter is Suing me!!!

2009-08-12 Thread Gonzalo Larralde

On Tue, Aug 11, 2009 at 11:48 PM, Dean Collinsd...@cognation.net wrote:
 Any other developer being sued by Twitter today?

Basically it's a WINDOWS XP .net application, if you have a mac and
you stupidly purchase this and it doesn't workgo bitch to Steve
Jobs. [0]

If you buy this and it doesn't do what you thought it was supposed
togo bitch to your mother. [0]

I hope they win. ¬¬


[0] http://www.mytwitterbutler.com/ @ About Me