SalmanAzmat / php-twitter

Automatically exported from code.google.com/p/php-twitter
0 stars 0 forks source link

updateLocation requires POST #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Update Location to use Post Method.

        /**
         * Updates Geo location
         * @param string $location Required. Must be urlencoded. Example
(San%20Francisco)
         * @return string
         */
        function updateLocation( $location ) {
            $postargs = '?location='.urlencode( $location );
            $request = 'http://twitter.com/account/update_location.' . $this->type .
$postargs;
            $out = $this->process( $request, $postargs );
            return $this->objectify( $this->process($request) );
        }

Original issue reported on code.google.com by farrel...@gmail.com on 20 Nov 2008 at 2:29

GoogleCodeExporter commented 8 years ago
update_location method has been deprecated in favor of update_profile. This 
methos is
now a wrapper for updateProfile()

Original comment by emmenset...@gmail.com on 28 Feb 2009 at 2:49