Hi there
  I have included TwitterAPI.php file in say show.php, in this main file
when i call first function ratelimit() and access it thru
foreach loop, it gives error as "Invalid arguments supplied for foreach".

  I thought that problem would be for ratelimit() only, but when I executed
userstatus($unm) and followers function individually in another file, it's
giving error as:  "bool(false)".

Thank you in advance.

On Wed, May 19, 2010 at 12:21 PM, Abraham Williams <4bra...@gmail.com>wrote:

> What does the rest of the error message say? What method is getting invalid
> arguments? What line in the PHP file is having the error?
>
> Abraham
>
>
> On Wed, May 19, 2010 at 01:23, Rushikesh Bhanage 
> <rishibhan...@gmail.com>wrote:
>
>> Hi there,
>>
>> I am using Mr David Billingham's PHP class file in application. "
>> http://twitter.slawcup.com/twitter.class.phps";.
>>
>> The request URL include parameter as username to fetch data from methods
>> like userstatus($unm) (gives particular user's data) and followerscid($unm)
>> gives that user's followers info and ratelimit() method (gives
>> rate_limit_status).
>>
>> One of the e.g to API request is:
>>      function userstatus($unm)
>>     {
>>            $request = 
>> 'http://api.twitter.com/1/users/show/'.$unm.'.xml<http://api.twitter.com/1/users/show/%27.$unm.%27.xml>';
>>
>>             return $this->process($request);
>>     }
>> and call this method with twitter class object, gives error on accessing
>> data as invalid arguments supplied in the main code but when I call it
>> individually with print_r(arrayname) then it gives like- "bool(false)" .
>>
>> same thing happens with ratelimit() which gives error as "Invalid
>> Arguments Supplied to the method"
>>
>> Using xml as extension to get data in xml format and developed whole code
>> using xml(key-value pair)
>>
>> There is no proxy like thing as I hv uploaded files on server and dealing
>> directly with it.
>>
>>
>>
>> Please help me on this.
>> Thank you in advance.
>>
>> Rushi.
>>
>>
>>
>> On Wed, May 19, 2010 at 1:27 AM, Abraham Williams <4bra...@gmail.com>wrote:
>>
>>> What is the exact error?
>>>
>>> Abraham
>>>
>>>
>>> On Tue, May 18, 2010 at 00:07, Rushikesh Bhanage <rishibhan...@gmail.com
>>> > wrote:
>>>
>>>> Hi,
>>>>   Yes, I had the same doubt, so I replaced a month back's TwitterAPI.php
>>>> file and tried to run, but no happy moment and saw same error.
>>>>
>>>>    Actually I was working on another module of this project so was not
>>>> in touch with this, now I tried to run this but
>>>>     I don't understand why this is so because it was running perfectly
>>>> few days back, but started giving error now.
>>>>
>>>>    When I access ratelimit status through request URL it gives me data
>>>> in value form not in (key-value) of xml format as it was giving previously.
>>>>
>>>>
>>>> twitter is a class and ratelimit method has no arguments passed neither
>>>> before nor now.
>>>>
>>>>  your help will be greatly appreciated,
>>>>
>>>> Rushi
>>>>
>>>> On Mon, May 17, 2010 at 9:49 PM, Abraham Williams <4bra...@gmail.com>wrote:
>>>>
>>>>> Did you recently update TwitterAPI.php? It sounds like twitter() or
>>>>> ratelimit() need an argument passed int.
>>>>>
>>>>> Abraham
>>>>>
>>>>>
>>>>> On Mon, May 17, 2010 at 03:39, Rushikesh Bhanage <
>>>>> rishibhan...@gmail.com> wrote:
>>>>>
>>>>>> Hi there,
>>>>>>
>>>>>> I am using this (sample code)code to get ratelimit status:
>>>>>> <?php
>>>>>>
>>>>>> include("TwitterAPI.php");
>>>>>> $t = new twitter();
>>>>>>
>>>>>> $ratearr = $t->ratelimit();
>>>>>>
>>>>>> print_r($ratearr);
>>>>>>
>>>>>> ?>
>>>>>> ratelimit() function contains the url:"
>>>>>> http://api.twitter.com/1/account/rate_limit_status.xml";. I was
>>>>>> getting rate limit status with this up till now but now it gives error as
>>>>>> "invalid arguments supplied. "
>>>>>> But when I paste the same URL in address bar, I get
>>>>>> rate_limit_status.
>>>>>>
>>>>>> why this is so?
>>>>>>
>>>>>>
>>>>>> Rushi.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Abraham Williams | Developer for hire | http://abrah.am
>>>>> @abraham | http://projects.abrah.am | http://blog.abrah.am
>>>>> This email is: [ ] shareable [x] ask first [ ] private.
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Abraham Williams | Developer for hire | http://abrah.am
>>> @abraham | http://projects.abrah.am | http://blog.abrah.am
>>> This email is: [ ] shareable [x] ask first [ ] private.
>>>
>>
>>
>
>
> --
> Abraham Williams | Developer for hire | http://abrah.am
> @abraham | http://projects.abrah.am | http://blog.abrah.am
> This email is: [ ] shareable [x] ask first [ ] private.
>

Reply via email to