Re: [twitter-dev] Re: Get a user's first tweet?

2009-12-07 Thread Adam Shannon
I believe that it's 3200.

On Mon, Dec 7, 2009 at 19:17, Quertant quert...@gmail.com wrote:
 What is the max count?
 Sorry, I am new to the twitter API.

 On Dec 7, 6:25 am, John Meyer john.l.me...@gmail.com wrote:
 On 12/6/2009 6:13 PM, Quertant wrote:

  How might I go about retrieving just the first tweet that a given user
  has ever tweeted? Or, more generally, how might I go about listing a
  user's tweets in REVERSE order from how they are displayed on the
  site? Thanks for the help.

  -Marcus

 it depends upon how many times that person has tweeted.  If it's above
 the max-count, then no.




-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: Bad ssl certs on some servers for api.twitter.com/1 ?

2009-11-15 Thread Adam Shannon

When you use HTTP over HTTPS you will never have trouble with (TLS)
certs because they
are never used for port 80 traffic.

On Sun, Nov 15, 2009 at 19:56, dean.j.robinson
dean.j.robin...@gmail.com wrote:

 This could possibly be related,

 I recently switched from using https://twitter.com to https://api.twitter.com
 and found that the majority of my cURL calls (via php) to the api
 started failing, although no other parts of my function changed.

 Out of curiosity I changed it to http://api.twitter.com and haven't
 had the issue since.



 On Nov 16, 10:46 am, John Adams j...@twitter.com wrote:
 On Nov 15, 2009, at 1:16 PM, Tim Haines wrote:

  Hi there,

  I'm doing some dev work and I'm getting occasional ssl errors when
  making calls against api.twitter.com/1.  The most recent was posting
  to favorites/create.

  Is it possible some of the servers have bad certificates?  Or is it
  likely I'm doing something very wrong?

 All of our servers have the same certificates; We have had some people
 report a similar issue before and we verified all of the certificates
 at that time. I do know of people having validation issues when they
 don't have current versions of OpenSSL, a current Root CA bundle, or
 their code has problems processing chained SSL certificates.

 Which program are you using to make requests against api.twitter.com?
 curl? Firefox?

 Twitter's SSL certs are issued by RapidSSL/Equifax.
 Make sure you have the proper root CA certs installed.

 If you're using OpenSSL libraries directly, remember that OpenSSL
 ships without any Root CA certs installed.

 Curl users will have similar problems as well -- you'll want to run mk-
 ca-bundle to get the proper ca-bundle installed.

 The TTYtter developers have a script that pulls the current CA bundle
 from Mozilla, here:

 http://www.floodgap.com/software/ttytter/mk-ca-bundle.txt

 -john




-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] [Feature-Request] The ability to use multiple phones.

2009-10-17 Thread Adam Shannon

Has there been any talk of allowing multiple phones?  By multiple
phones I mean many numbers that can send to 40404 and post
under the same account.

Also, I was wondering if there was any discussion over the topic of
linking multiple profiles towards a single phone? I've been wanting
the ability to send a SMS message and pick what account I update.

-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: SMS Notifications

2009-10-10 Thread Adam Shannon

I haven't tested either of those cases, but I'm noticing that SMS
notifications are delayed in general (some times over an hour).


-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: http vs https for twitter api calls

2009-10-03 Thread Adam Shannon

HTTPS is a secure and encrypted transfer protocol for HTTP.  HTTPS is
designed to hide sensitive data (passwords, credit card numbers)
from malicious persons.  So it's safe to say that whenever you will be
transferring sensitive data (OAuth, passwords) you should use HTTPS.

On Sat, Oct 3, 2009 at 12:03 PM, Andy Freeman ana...@earthlink.net wrote:

 When should I use https instead of http in twitter api calls?

 I'd guess that it's okay to use http for oauth-authenticated /show/
 user and maybe /statuses/update, but what about the four oauth calls (/
 oauth/request_token, /oauth/authorize, /oauth/authenticate, and /oauth/
 access_token)?

 Thanks,
 -andy




-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: Twitter Background

2009-09-13 Thread Adam Shannon
The backgrounds can repeat if you want them to, they tile I think.  I don't
think that there is a size limit, just anything under 5MB should work.

On Sun, Sep 13, 2009 at 7:47 PM, shapper mdmo...@gmail.com wrote:


 Hello,

 I need to create a custom Twitter background.
 What are the dimensions for it and the allowed maximum size or the
 size you advice?

 Does the background repeats horizontal and vertically?

 What are the options?

 Thanks,
 Miguel




-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: error with simple xml load file

2009-08-30 Thread Adam Shannon
You need to allow PHP to access 3rd party (external) domains and grab files
from them.

In your php.ini you should change this:

allow_url_fopen = Off

To:

allow_url_fopen = On

Also, if your host allows you to place php.ini files in the directory just
put this in a new php.ini file.
[PHP]
allow_url_fopen = On

On Sun, Aug 30, 2009 at 4:22 PM, chepe263 chepe...@gmail.com wrote:


 Hello, i have a question, How use it with xml api format??? See, i'm
 using the http://twitter.com/statuses/friends_timeline.xml to get the
 friends timeline for my app but i don't know how use it the data with
 SimpleXML

 Please help!!

 chepe263

 On Jul 27, 10:23 pm, jmathai jmat...@gmail.com wrote:
  JDG is probably correct.
 
  $ch = curl_init('http://search.twitter.com/search.atom?q=Google');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  $result = curl_exec($ch);
  $sXml = simplexml_load_string($result);
  var_dump($sXml);
 
  On Jul 27, 4:45 pm, oscarva osca...@gmail.com wrote:
 
   Please help :(
 
   On 25 jul, 01:05, oscarva osca...@gmail.com wrote:
 
I am tring to do a Api call using simple xml and twitter search API.
 
$rss = simplexml_load_file('http://search.twitter.com/search.atom?
q=Google');
foreach ($rss-channel-item as $item){
$title = utf8_decode($item-title);
$url = $item-link;
 
}
 
The error log tells me the following:
 
PHP Warning:  simplexml_load_file() [a
 href='function.simplexml-load-
file'function.simplexml-load-file/a]: I/O warning : failed to load
external entity quot;http://search.twitter.com/search.atom?
q=Googlequot; in /home/xxx/public_html/test/status.php on line 10
[error] [client 166.210.xxx.xxx] PHP Warning:  simplexml_load_file
(http://search.twitter.com/search.atom?q=Google) [a
   
 href='function.simplexml-load-file'function.simplexml-load-file/a]:
failed to open stream: Connection timed out in /home/xxx/public_html/
test/status.php on line 10
 
PHP Version 5.2.8
 
This only happens on my server, since in local working properly.  :(
 
Please Help. Thaks ;)




-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: twitter based message board

2009-08-26 Thread Adam Shannon
While not a twitter message board, this system uses the authorized twitter
username to allow users to post threads and reply to current threads.

http://a.tinythread.com

On Wed, Aug 26, 2009 at 5:58 PM, Peter Denton petermden...@gmail.comwrote:

 Hello,
 Has anyone created a twitter account based message board?

 I am building out a service and want users to be able to post forum
 questions, etc form the app. Im not looking for anything special, just want
 them to be able to communicate after already authenticating with the system.

 Thought I would ping everyone and see if anyone has done anything similar?

 Thanks
 Peter





-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: Recent SimpleXML_load_string error

2009-08-18 Thread Adam Shannon
Reload the page, it's been happening to me.

On Tue, Aug 18, 2009 at 11:03 AM, Jason Lav abacus...@gmail.com wrote:


 I am getting a SimpleXML error (see below) when trying to run
 simplexml_load_string on XML content from Twitter (http://twitter.com/
 statuses/user_timeline.xml). It is an intermittent problem and I have
 seen on my own site as a well as others websites (if you search on
 google, you will find a number of instances).

 The problem, I believe, started quite recently. It also is not a
 consistent issue. Thoughts?

 Warning: simplexml_load_string() [function.simplexml-load-string ]:
 Entity: line 10: parser error : Opening and ending tag mismatch: META
 line 8 and HEAD in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: /
 HEAD in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: ^
 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]:
 Entity: line 11: parser error : Opening and ending tag mismatch: P
 line 11 and BODY in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]:
 BODYP/BODY in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: ^
 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]:
 Entity: line 12: parser error : Opening and ending tag mismatch: BODY
 line 11 and HTML in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: /
 HTML in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: ^
 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]:
 Entity: line 13: parser error : Premature end of data in tag META line
 7 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: in
 [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: ^
 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]:
 Entity: line 13: parser error : Premature end of data in tag META line
 6 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: in
 [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: ^
 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]:
 Entity: line 13: parser error : Premature end of data in tag HEAD line
 5 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: in
 [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: ^
 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]:
 Entity: line 13: parser error : Premature end of data in tag HTML line
 4 in [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: in
 [file-path]on line 8

 Warning: simplexml_load_string() [function.simplexml-load-string ]: ^
 in [file-path]on line 8

 Fatal error: Call to a member function children() on a non-object in
 [file-path]on line 10




-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: 401 Error, could not authenticate you problem

2009-08-17 Thread Adam Shannon
On Mon, Aug 17, 2009 at 9:42 PM, havis bazoa...@gmail.com wrote:


 Hello, i am working on a project for mobile phones and Twitter API. I
 made tests using java platform and everything works ok, when i use the
 same credentials in j2me, there is always the following message as
 response:

 ?xml version=1.0 encoding=UTF-8?
 hash
  request/statuses/friends_timeline.xml/request
  errorCould not authenticate you./error
 /hash


 I am using basic authentication. Did you have this problem? Can
 anybody help me please? thanks in advance.


Are you using this basic format?
http[s]://username:passw...@twitter.com/authenticate/


-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] I must be stupid.

2009-08-14 Thread Adam Shannon
Hey,
This is my first post and I'm new to Oauth, I must be doing something wrong
and I'm looking for help.
Here is just a sample uri generator i'm trying...

?php

// Some defaults
$consumer_key = ''; // Normally My Key
$consumer_secret_key = ''; // Normally the private key.
 $signature_method = 'HMAC-SHA1';


// Lets get it setup
$request_uri = 'http://twitter.com/oauth/request_token';
 $oauth['parms']['oauth_consumer_key'] = '?oauth_consumer_key=' .
$consumer_key;
 $oauth['parms']['oauth_signature_method'] = 'oauth_signature_method=' .
$signature_method;
 $oauth['parms']['oauth_signature'] = 'oauth_signature=' .
sha1($consumer_secret_key);
 $oauth['parms']['oauth_timestamp'] = 'oauth_timestamp=' . time();
 $oauth['parms']['oauth_nonce'] = 'oauth_nonce=' . (int) ceil( time() / (
rand(200, 5000) / 2 ) );
 $oauth['parms']['oauth_version'] = 'oauth_version=1.0';
 foreach ($oauth['parms'] as $parm) {
$request_uri = $request_uri . $parm;
}


echo $request_uri;

I read that the nonce has to be unique and I believe that it is, the
signature I have no clue (am I supposed to use a known substring of a
mycrypt?  Or am I supposed to hash the data and let you compare it?

I'm really struggling with this, if I could get any help it would be great.

-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: I must be stupid.

2009-08-14 Thread Adam Shannon
On Fri, Aug 14, 2009 at 5:09 PM, Chad Etzel c...@twitter.com wrote:


 Hi Adam,

 I would suggest taking a look at Abraham's Twitter oAuth library for a
 great example of PHP + Twitter oAuth.
 http://twitter.abrah.am/

 -Chad


I have looked at that,  what I guess I'm looking for is a simple version so
that I can custom build my own app.

-- 
- Adam Shannon ( http://ashannon.us )


[twitter-dev] Re: I must be stupid.

2009-08-14 Thread Adam Shannon
On Fri, Aug 14, 2009 at 5:30 PM, Peter Denton petermden...@gmail.comwrote:

 Hi Adam,
 If you want you can email me off list and I can help you use Abrahams. Its
 really about as simple as something as going to be that you can trust will
 work. Else, you might end up creating a lot of issues without knowing it.

 Regards
 Peter


 On Fri, Aug 14, 2009 at 3:25 PM, Julio Biason julio.bia...@gmail.comwrote:


 On Sat, Aug 15, 2009 at 7:25 AM, Adam Shannona...@ashannon.us wrote:
  foreach ($oauth['parms'] as $parm) {
  $request_uri = $request_uri . $parm;
  }

 Well, you didn't state the results you're getting (which error) so I'm
 just guessing here. If I'm not mistaken, PHP uses a hash for array
 indexes and, thus, it may be adding the elements in the $request_uri
 in the wrong order. I can't remember how to do that in PHP, but in
 Python it would be something like:

 for key in sort(oauth['params'].keys()):
  request_uri += oauth['params'][key]


 --
 Julio Biason julio.bia...@gmail.com
 Twitter: http://twitter.com/juliobiason



@Julio
Thanks, the error is:Failed to validate oauth signature and token.

Also, do the attributes need to be in some specified order?
@Peter

I would really like to teach myself how to do this rather then just taking a
framework and relying on blackbox operations.

-- 
- Adam Shannon ( http://ashannon.us )