Re: [twitter-dev] Re: Twitter OAuth PHP - Submit tweets without user login?

2011-02-17 Thread Dan
This example finally made sense of the whole thing and now I am up and 
running. 

-- 
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] Re: Twitter OAuth PHP - Submit tweets without user login?

2011-02-17 Thread Abraham Williams
Look at the comments at the top of twitter.php.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham  | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Thu, Feb 17, 2011 at 12:26, ritesh ranjan wrote:

> Hi Abraham,
>
> Thanks for your explanation in such a very easy way.
> I am using the same url https://gist.github.com/564882  and after download
> the file, I am just getting only the code of Twitter.php, but it also
> requires  the require_once('twitteroauth.php'), so My question is from where
> I can find out the 'twitteroauth.php' file, because When I am downloading
> this link only twitter.php file is there in a folder. Please check , and
> very thanks in advance.
>
> Ritesh
>
> On Fri, Feb 18, 2011 at 12:29 AM, Abraham Williams <4bra...@gmail.com>wrote:
>
>> Here is pretty much the simplest  code to post a new status:
>> https://gist.github.com/564882
>>
>>
>> Abraham
>> -
>> Abraham Williams | Hacker Advocate | abrah.am
>> @abraham  | github.com/abraham |
>> blog.abrah.am
>> This email is: [ ] shareable [x] ask first [ ] private.
>>
>>
>>
>> On Thu, Feb 17, 2011 at 10:53, Adamantus  wrote:
>>
>>> Hi Abraham.
>>>
>>> I tried to hack your example to use the static tokens but to be honest
>>> I'm out of my depth. Is there any chance of an example on how to use
>>> the API without logins?
>>>
>>> --
>>> 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 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] Re: Twitter OAuth PHP - Submit tweets without user login?

2011-02-17 Thread ritesh ranjan
Hi Abraham,

Thanks for your explanation in such a very easy way.
I am using the same url https://gist.github.com/564882  and after download
the file, I am just getting only the code of Twitter.php, but it also
requires  the require_once('twitteroauth.php'), so My question is from where
I can find out the 'twitteroauth.php' file, because When I am downloading
this link only twitter.php file is there in a folder. Please check , and
very thanks in advance.

Ritesh

On Fri, Feb 18, 2011 at 12:29 AM, Abraham Williams <4bra...@gmail.com>wrote:

> Here is pretty much the simplest  code to post a new status:
> https://gist.github.com/564882
>
>
> Abraham
> -
> Abraham Williams | Hacker Advocate | abrah.am
> @abraham  | github.com/abraham |
> blog.abrah.am
> This email is: [ ] shareable [x] ask first [ ] private.
>
>
>
> On Thu, Feb 17, 2011 at 10:53, Adamantus  wrote:
>
>> Hi Abraham.
>>
>> I tried to hack your example to use the static tokens but to be honest
>> I'm out of my depth. Is there any chance of an example on how to use
>> the API without logins?
>>
>> --
>> 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] Re: Twitter OAuth PHP - Submit tweets without user login?

2011-02-17 Thread Abraham Williams
Here is pretty much the simplest  code to post a new status:
https://gist.github.com/564882

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham  | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Thu, Feb 17, 2011 at 10:53, Adamantus  wrote:

> Hi Abraham.
>
> I tried to hack your example to use the static tokens but to be honest
> I'm out of my depth. Is there any chance of an example on how to use
> the API without logins?
>
> --
> 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] Re: Twitter OAuth PHP - Submit tweets without user login?

2011-02-17 Thread Abraham Williams
The access token from "my access token"  is specifically tied to the
consumer key. Make sure you are not switching them up.

Abraham
-
Abraham Williams | Hacker Advocate | abrah.am
@abraham  | github.com/abraham | blog.abrah.am
This email is: [ ] shareable [x] ask first [ ] private.



On Thu, Feb 17, 2011 at 10:18, Adamantus  wrote:

> Thanks Scott. I found the token from that page but I get "Could not
> authenticate you" when I try and use it. Do you happen to know where I
> might get some code or tutorial which would explain how to use the
> tokens from the site?
>
> --
> 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] Re: Twitter OAuth PHP - Submit tweets without user login?

2011-02-17 Thread Scott Wilcox
Different library to Abraham's, but try: 
https://github.com/dordotky/oauth-examples/tree/master/single-account-use

On 17 Feb 2011, at 18:18, Adamantus wrote:

> Thanks Scott. I found the token from that page but I get "Could not
> authenticate you" when I try and use it. Do you happen to know where I
> might get some code or tutorial which would explain how to use the
> tokens from the site?
> 
> -- 
> 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