FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17694&edit=1

ID: 17694
Updated by: hostmaster@shupp.org
Reported By: steve at twitpic dot com
Summary: Support for users/lookup, geo/search, and geo/id
-Status: Feedback
+Status: Closed
Type: Feature/Change Request
Package: Services_Twitter
Operating System: FreeBSD
Package Version: 0.6.2
PHP Version: Irrelevant
Assigned To: izi
Roadmap Versions:
New Comment:

-Status: Feedback
+Status: Closed
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/get/




Previous Comments:
------------------------------------------------------------------------

[2010-08-19 01:53:08] steve_twitpic

It works for me. Try this:

$t = new Services_Twitter();
print_r($t->geo->id("247f43d441defc03"));
print_r($t->geo->search(array("lat" => "37.7821120598956", "long" =>
"-122.400612831116")));

------------------------------------------------------------------------

[2010-08-15 09:52:35] izi

-Status: Analyzed
+Status: Feedback
-Assigned To:
+Assigned To: izi
Hi Stephen, thanks !

I've applied your patch (along with some minor updates):
http://svn.php.net/viewvc/pear/packages/Services_Twitter/trunk/data/api.xml?r1=302262&r2=302261&pathrev=302262

But for some reason I'm getting 400 Bad request errors with the geo
methods, could you have a look at it please ?

--
David

------------------------------------------------------------------------

[2010-08-14 14:03:43] doconnor

-Status: Open
+Status: Analyzed


------------------------------------------------------------------------

[2010-08-14 14:03:34] doconnor

Cheers for the patch Steve!

------------------------------------------------------------------------

[2010-08-11 15:26:26] steve_twitpic

Here is the patch- the "Add patch" system is not letting me upload
patch.txt for whatever reason.


239a240,245
<endpoint name="lookup" method="GET" auth_required="true"
min_args="1">
<formats>xml,json</formats>
<param name="user_id" type="string" required="false"/>
<param name="screen_name" type="string"
required="false"/>
<param name="include_entities" type="boolean"
required="false"/>
</endpoint> 471a478
<param name="result_type" type="string" required="false"/>
502c509,527
<
---
<!-- Geo API Methods -->
<category name="geo">
<endpoint name="search" method="GET" min_args="1"
auth_required="false">
<formats>json</formats>
<param name="lat" type="lat"
required="false"/>
<param name="long" type="long"
required="false"/>
<param name="query" type="string"
required="false"/>
<param name="ip" type="string"
required="false"/>
<param name="granularity" type="string"
required="false"/>
<param name="accuracy" type="string"
required="false"/>
<param name="max_results" type="integer"
required="false"/>
<param name="contained_within" type="string"
required="false"/>
<param name="autocomplete" type="boolean"
required="false"/>
</endpoint>
<endpoint name="id" method="GET" auth_required="true"
routing="/geo/id/:place_id">
<formats>json</formats>
<param name="place_id" type="string"
required="true"/>
</endpoint>
</category>
------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=17694

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 12, '10 at 6:32p
activeSep 12, '10 at 6:32p
posts1
users1
websitepear.php.net

1 user in discussion

Hostmaster: 1 post

People

Translate

site design / logo © 2022 Grokbase