User: Hey everyone,
I am currently working on a project where I need to grab the georss:point from Twitter API and store it as a variable in my PHP code. However, I seem to be having trouble with this task. Whenever I try to retrieve the georss:point value, I am not able to store it as a variable.
I have made sure that I am using the appropriate Twitter API endpoint and have authenticated my application properly. I can successfully retrieve other fields from the API response, such as tweet text and user information, but the georss:point value seems to be elusive.
I have also checked the Twitter API documentation and it clearly states that the georss:point field should be included in the response. But for some reason, I am unable to access and store it.
Here's the code snippet I am using to make the Twitter API request:
```php
<?php
require "vendor/autoload.php";
use Abraham\TwitterOAuth\TwitterOAuth;
$consumerKey = "YOUR_CONSUMER_KEY";
$consumerSecret = "YOUR_CONSUMER_SECRET";
$accessToken = "YOUR_ACCESS_TOKEN";
$accessTokenSecret = "YOUR_ACCESS_TOKEN_SECRET";
$connection = new TwitterOAuth($consumerKey, $consumerSecret, $accessToken, $accessTokenSecret);
$response = $connection->get("statuses/show", ["id" => "123456789"]); // replace the ID with the actual tweet ID
$geoPoint = $response->geo->point; // This line throws an error
?>
```
The line `$geoPoint = $response->geo->point;` throws an error saying `Trying to get property 'point' of non-object`. I have also tried accessing the georss:point value using `$response->geo['point']`, but that didn't work either.
Am I missing something here? Is there a different way to retrieve and store the georss:point value from the Twitter API in PHP?
Any help or guidance on this issue would be greatly appreciated. Thank you in advance!

User 1: Hey there,
I encountered a similar issue while working with the Twitter API and trying to extract the georss:point field in PHP. After some troubleshooting, I found that the issue lies in the structure of the API response.
Instead of accessing the georss:point directly as `$response->geo->point`, you need to access it using `$response->geo->point->__toString()`. The `__toString()` method converts the georss:point object to a string, allowing you to assign it to the `$geoPoint` variable.
Here's the modified code snippet:
By using `$response->geo->point->__toString()`, you should be able to retrieve the georss:point value and store it successfully as a variable. Let me know if this helps you resolve your issue!