[twitter-dev] coldfusion / twitter status update/

2010-09-03 Thread chris brickhouse
I used to use the basic authentication process with a cfhttp tag but
since that doesn't work anymore, has anyone developed a way to post a
status update without having to redirect the user to the twitter site
using a username and password?

-- 
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: Twitter status update through a Ajax Post

2010-02-13 Thread Zac Bowling
Looks like cross server Ajax to me. Can't do that because of the same origin
design of Ajax. Not sure how it worked before (unless running locally.)
Unless my tired eyes are lieing to me, you are not running this inside ASP
(runat=server) so that JS is running in the browser.

On Feb 12, 2010 9:07 PM, atomic mouse quickf...@gmail.com wrote:

Thank you very much for your reply Raffi.


 is this hosted somewhere so we can hit it with a browser
Yes certainly, it is on http://www.dinkumsite.com/twitter_feed.asp

I have created a Twitter test account and inserted the correct
username and password in the code.

To discount the possibility that it might be some weird server
setting, I have also published this test page to 2 seperate servers. I
got the same error on both

Regards;


[twitter-dev] Re: Twitter status update through a Ajax Post

2010-02-13 Thread atomic mouse
Hello Friends;

In December I wrote a little function to allow users to update our
Twitter status by  completing a form embedded in our CMS. This has
worked fine untill last week.


The script simply sends a ajax post to http://twitter.com/statuses/
update.xml


Unfortunately it returns the following error:
  Permission denied - line 13


Which is the line stating :
  axobj.open(POST,purl,false,my username,my password);


*The my username and my password is replaced with the correct
login details at runtime.


Here is the complete test code:


%...@language=JAVASCRIPT CODEPAGE=1252%
html
head
title/title
script type=text/javascript
function asp_twitter_update(strMsg)
{


var axobj,purl;


purl = http://twitter.com/statuses/update.xml;;


axobj = new ActiveXObject(Microsoft.XMLHTTP);
axobj.open(POST,purl,false,my username,my password);
axobj.setRequestHeader(Content-type, application/x-www-
form-
urlencoded);
//axobj.setRequestHeader(Connection, close);


axobj.send(status=+Server.URLEncode(strMsg));



}


asp_twitter_update(This is the new status message to be
posted);
/script
/head
body

/body
/html


I have spent around 18 hours so far trying to solve this problem, but
no luck so far.


Any and all help in resolving this will be greatly appreciated.


Regards


[twitter-dev] Re: Twitter status update through a Ajax Post

2010-02-13 Thread atomic mouse
I have replaced the first post in this thread here :::

Hello Friends;

In December I wrote a little function to allow users to update our
Twitter status by  completing a form embedded in our CMS. This has
worked fine untill last week.


The script simply sends a ajax post to http://twitter.com/statuses/
update.xml


Unfortunately it returns the following error:
  Permission denied - line 13


Which is the line stating :
  axobj.open(POST,purl,false,my username,my password);


*The my username and my password is replaced with the correct
login details at runtime.


Here is the complete test code:


%...@language=JAVASCRIPT CODEPAGE=1252%
html
head
title/title
script type=text/javascript
function asp_twitter_update(strMsg)
{


var axobj,purl;


purl = http://twitter.com/statuses/update.xml;;


axobj = new ActiveXObject(Microsoft.XMLHTTP);
axobj.open(POST,purl,false,my username,my password);
axobj.setRequestHeader(Content-type, application/x-www-
form-
urlencoded);
//axobj.setRequestHeader(Connection, close);


axobj.send(status=+Server.URLEncode(strMsg));



}


asp_twitter_update(This is the new status message to be
posted);
/script
/head
body

/body
/html


I have spent around 18 hours so far trying to solve this problem, but
no luck so far.


Any and all help in resolving this will be greatly appreciated.


Regards


Re: [twitter-dev] Re: Twitter status update through a Ajax Post

2010-02-13 Thread Christian Heilmann

atomic mouse wrote:

I replaced the first post here ::

Hello Friends;

In December I wrote a little function to allow users to update our
Twitter status by  completing a form embedded in our CMS. This has
worked fine untill last week.


The script simply sends a ajax post to http://twitter.com/statuses/
update.xml


Unfortunately it returns the following error:
  Permission denied - line 13


Which is the line stating :
  axobj.open(POST,purl,false,my username,my password);


*The my username and my password is replaced with the correct
login details at runtime.


Here is the complete test code:


%...@language=JAVASCRIPT CODEPAGE=1252%
html
head
title/title
script type=text/javascript
function asp_twitter_update(strMsg)
{


var axobj,purl;


purl = http://twitter.com/statuses/update.xml;;


axobj = new ActiveXObject(Microsoft.XMLHTTP);
axobj.open(POST,purl,false,my username,my password);
axobj.setRequestHeader(Content-type, application/x-www-
form-
urlencoded);
//axobj.setRequestHeader(Connection, close);


axobj.send(status=+Server.URLEncode(strMsg));



}


asp_twitter_update(This is the new status message to be
posted);
/script
/head
body

/body
/html


I have spent around 18 hours so far trying to solve this problem, but
no luck so far.


Any and all help in resolving this will be greatly appreciated.


Regards

  
Ajax cannot send to end points outside of your server. You have to use a 
local proxy. I guess the other problem is that you have no user agent 
specified.


In any case, storing a username and password readable in JavaScript is a 
terrible idea. Anyone looking at the source of this page could send 
Tweets on your behalf.




[twitter-dev] Twitter status update through a Ajax Post

2010-02-12 Thread atomic mouse
Hello Friends;

In December I wrote a little function to allow users to update our
Twitter status by  completing a form embedded in our CMS. This has
worked fine untill last week.

The script simply sends a ajax post to http://twitter.com/statuses/
update.xml

Unfortunately it returns the following error:
  Permission denied - line 13

Which is the line stating :
  axobj.open(POST,purl,false,my username,my password);

*The my username and my password is replaced with the correct
login details at runtime.

Here is the complete test code:

%...@language=JAVASCRIPT CODEPAGE=1252%
html
head
title/title
script type=text/javascript
function asp_twitter_update(strMsg)
{

var axobj,purl;

purl = http://twitter.com/statuses/update.xml;;

axobj = new ActiveXObject(Microsoft.XMLHTTP);
axobj.open(POST,purl,false,UPTuks,brandewyn);
axobj.setRequestHeader(Content-type, application/x-www-form-
urlencoded);
//axobj.setRequestHeader(Connection, close);

axobj.send(status=+Server.URLEncode(strMsg));

}

asp_twitter_update(This is the new status message to be posted);
/script
/head
body

/body
/html

I have spent around 18 hours so far trying to solve this problem, but
no luck so far.

Any and all help in resolving this will be greatly appreciated.

Regards


Re: [twitter-dev] Twitter status update through a Ajax Post

2010-02-12 Thread Raffi Krikorian
hi!

i see nothing obviously wrong with this - is this hosted somewhere so we can
hit it with a browser and see what's being generated by the browser request?

On Fri, Feb 12, 2010 at 1:37 AM, atomic mouse quickf...@gmail.com wrote:

 Hello Friends;

 In December I wrote a little function to allow users to update our
 Twitter status by  completing a form embedded in our CMS. This has
 worked fine untill last week.

 The script simply sends a ajax post to http://twitter.com/statuses/
 update.xml

 Unfortunately it returns the following error:
  Permission denied - line 13

 Which is the line stating :
  axobj.open(POST,purl,false,my username,my password);

 *The my username and my password is replaced with the correct
 login details at runtime.

 Here is the complete test code:

 %...@language=JAVASCRIPT CODEPAGE=1252%
 html
 head
title/title
 script type=text/javascript
 function asp_twitter_update(strMsg)
 {

var axobj,purl;

purl = http://twitter.com/statuses/update.xml;;

axobj = new ActiveXObject(Microsoft.XMLHTTP);
axobj.open(POST,purl,false,UPTuks,brandewyn);
axobj.setRequestHeader(Content-type, application/x-www-form-
 urlencoded);
//axobj.setRequestHeader(Connection, close);

axobj.send(status=+Server.URLEncode(strMsg));

 }

asp_twitter_update(This is the new status message to be posted);
 /script
 /head
 body

 /body
 /html

 I have spent around 18 hours so far trying to solve this problem, but
 no luck so far.

 Any and all help in resolving this will be greatly appreciated.

 Regards




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


[twitter-dev] Re: Twitter status update through a Ajax Post

2010-02-12 Thread atomic mouse
Thank you very much for your reply Raffi.

 is this hosted somewhere so we can hit it with a browser

Yes certainly, it is on http://www.dinkumsite.com/twitter_feed.asp

I have created a Twitter test account and inserted the correct
username and password in the code.

To discount the possibility that it might be some weird server
setting, I have also published this test page to 2 seperate servers. I
got the same error on both

Regards;


[twitter-dev] Twitter status update with Basic Auth Lua

2009-12-01 Thread Prometheus3k
Hi guys,
I'm using a desktop platform with a Lua scripting environment. The app
I'm making is standalone and does not run in a browser. It can connect
to http resources.
I'm trying out a simple test to update a status but web services isn't
a strong point of mine.

I'm following Basic Auth for now and looking to implement OAuth later.
The problem I'm having seems to be waiting for the xml response from
https://twitter.com/statuses/update.xml

I've url encoded my status message and am requesting a https resource
similar to
https://twitter.com/statuses/update.xml?status=; .. url_encoded_msg

I've created post data object setting type to application/x-www-form-
urlencoded and added the following key/values to the post data
Postdata.addValue(X-Twitter-Client, me)
Postdata.addValue(X-Twitter-Client-Version, 1.0 )
Postdata.addValue(X-Twitter-Client-URL, www.my_url.com)
and finally
Postdata.addValue( Authorization, authValue)

where authValue is the string Basic  .. Base64.Encode
(username:password)

I then send this off to twitter url
https://twitter.com/statuses/update.xml?status=; .. url_encoded_msg
with the postdata.

However my code ends up in a loop waiting for the xml response and
eventually timing out. I'd like to know if I've got the right steps
and values for PostData.

thanks


Re: [twitter-dev] Twitter status update with Basic Auth Lua

2009-12-01 Thread Josh Roesslein
Your basic auth value should be in a header not the post body. The
other X- values I think also go
into headers, but I don't provide those really so not sure. I'm not
even sure if twitter pays attention to those.

Josh

On Tue, Dec 1, 2009 at 9:25 AM, Prometheus3k prometheu...@gmail.com wrote:
 Hi guys,
 I'm using a desktop platform with a Lua scripting environment. The app
 I'm making is standalone and does not run in a browser. It can connect
 to http resources.
 I'm trying out a simple test to update a status but web services isn't
 a strong point of mine.

 I'm following Basic Auth for now and looking to implement OAuth later.
 The problem I'm having seems to be waiting for the xml response from
 https://twitter.com/statuses/update.xml

 I've url encoded my status message and am requesting a https resource
 similar to
 https://twitter.com/statuses/update.xml?status=; .. url_encoded_msg

 I've created post data object setting type to application/x-www-form-
 urlencoded and added the following key/values to the post data
 Postdata.addValue(X-Twitter-Client, me)
 Postdata.addValue(X-Twitter-Client-Version, 1.0 )
 Postdata.addValue(X-Twitter-Client-URL, www.my_url.com)
 and finally
 Postdata.addValue( Authorization, authValue)

 where authValue is the string Basic  .. Base64.Encode
 (username:password)

 I then send this off to twitter url
 https://twitter.com/statuses/update.xml?status=; .. url_encoded_msg
 with the postdata.

 However my code ends up in a loop waiting for the xml response and
 eventually timing out. I'd like to know if I've got the right steps
 and values for PostData.

 thanks



Re: [twitter-dev] Twitter status update with Basic Auth Lua

2009-12-01 Thread Mark McBride
Correct on the headers... Also note that if you're making a post, you
don't want status=... in the query string, you want it added to the
body of the request.  Are you using a specific Lua HTTP library?

   ---Mark

On Tue, Dec 1, 2009 at 8:45 AM, Josh Roesslein jroessl...@gmail.com wrote:
 Your basic auth value should be in a header not the post body. The
 other X- values I think also go
 into headers, but I don't provide those really so not sure. I'm not
 even sure if twitter pays attention to those.

 Josh

 On Tue, Dec 1, 2009 at 9:25 AM, Prometheus3k prometheu...@gmail.com wrote:
 Hi guys,
 I'm using a desktop platform with a Lua scripting environment. The app
 I'm making is standalone and does not run in a browser. It can connect
 to http resources.
 I'm trying out a simple test to update a status but web services isn't
 a strong point of mine.

 I'm following Basic Auth for now and looking to implement OAuth later.
 The problem I'm having seems to be waiting for the xml response from
 https://twitter.com/statuses/update.xml

 I've url encoded my status message and am requesting a https resource
 similar to
 https://twitter.com/statuses/update.xml?status=; .. url_encoded_msg

 I've created post data object setting type to application/x-www-form-
 urlencoded and added the following key/values to the post data
 Postdata.addValue(X-Twitter-Client, me)
 Postdata.addValue(X-Twitter-Client-Version, 1.0 )
 Postdata.addValue(X-Twitter-Client-URL, www.my_url.com)
 and finally
 Postdata.addValue( Authorization, authValue)

 where authValue is the string Basic  .. Base64.Encode
 (username:password)

 I then send this off to twitter url
 https://twitter.com/statuses/update.xml?status=; .. url_encoded_msg
 with the postdata.

 However my code ends up in a loop waiting for the xml response and
 eventually timing out. I'd like to know if I've got the right steps
 and values for PostData.

 thanks





-- 
   ---Mark

http://twitter.com/mccv


[twitter-dev] twitter status update

2009-11-26 Thread nite21
hi all
how to do status updates using twitter api with flash

will someone help me in this

thansk


Twitter Status update

2008-11-10 Thread VIswa

Hey

When ever there is an update in my followers status(means if they post
any update) i need to find out that they have posted some thing like
that, from a third party application or from twitter. Is there any way
to do that?  .Thanks in advance

Regards
Viswanathan


Re: Twitter Status update

2008-11-10 Thread Alex Payne

If you want a list of who's following you and their current status,
use this method:
http://apiwiki.twitter.com/REST+API+Documentation#followers.

On Mon, Nov 10, 2008 at 6:18 AM, VIswa [EMAIL PROTECTED] wrote:

 Hey

 When ever there is an update in my followers status(means if they post
 any update) i need to find out that they have posted some thing like
 that, from a third party application or from twitter. Is there any way
 to do that?  .Thanks in advance

 Regards
 Viswanathan




-- 
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x