1
- # Twitter for PHP
1
+ # X (formerly Twitter) for PHP
2
2
3
3
[ ![ Software License] ( https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square )] ( LICENSE.md )
4
4
[ ![ StyleCI] ( https://styleci.io/repos/11009743/shield )] ( https://styleci.io/repos/11009743 )
@@ -62,7 +62,7 @@ use the `response_format` option in the parameters you pass to any method.
62
62
response_format : object|json|array (v1 default:object) (v2 default:json)
63
63
```
64
64
65
- ## Twitter API Versions
65
+ ## X (formerly Twitter) API Versions
66
66
67
67
To set the default twitter API version to v2 instead of the default ` v1.1 ` , set the ` TWITTER_API_VERSION ` to ` 2 ` in
68
68
your ` .env ` .
@@ -74,7 +74,7 @@ It is safe to call `Twitter::forApiV1()` on either a `v1` or `v2` client instanc
74
74
75
75
## Functions
76
76
77
- ### Twitter API v1.1
77
+ ### X (formerly Twitter) API v1.1
78
78
79
79
#### Account
80
80
@@ -174,14 +174,14 @@ It is safe to call `Twitter::forApiV1()` on either a `v1` or `v2` client instanc
174
174
175
175
#### Help
176
176
177
- * ` postSpam() ` - Report the specified user as a spam account to Twitter. Additionally performs the equivalent of POST
177
+ * ` postSpam() ` - Report the specified user as a spam account to X (formerly Twitter) . Additionally performs the equivalent of POST
178
178
blocks / create on behalf of the authenticated user.
179
- * ` getHelpConfiguration() ` - Returns the current configuration used by Twitter including twitter .com slugs which are not
179
+ * ` getHelpConfiguration() ` - Returns the current configuration used by X (formerly Twitter) including x .com slugs which are not
180
180
usernames, maximum photo resolutions, and t.co URL lengths.
181
- * ` getHelpLanguages() ` - Returns the list of languages supported by Twitter along with the language code supported by
182
- Twitter.
181
+ * ` getHelpLanguages() ` - Returns the list of languages supported by X (formerly Twitter) along with the language code supported by X
182
+ (formerly Twitter) .
183
183
* ` getHelpPrivacy() ` - Returns Twitter’s Privacy Policy.
184
- * ` getHelpTos() ` - Returns the Twitter Terms of Service. Note: these are not the same as the Developer Policy.
184
+ * ` getHelpTos() ` - Returns the X (formerly Twitter) Terms of Service. Note: these are not the same as the Developer Policy.
185
185
* ` getAppRateLimit() ` - Returns the current rate limits for methods belonging to the specified resource families.
186
186
187
187
#### List
@@ -255,7 +255,7 @@ It is safe to call `Twitter::forApiV1()` on either a `v1` or `v2` client instanc
255
255
* ` postTweet() ` - Updates the authenticating user’s current status, also known as tweeting.
256
256
* ` postRt() ` - Retweets a tweet. Returns the original tweet with retweet details embedded.
257
257
* ` getOembed() ` - Returns a single Tweet, specified by either a Tweet web URL or the Tweet ID, in an oEmbed-compatible
258
- format. The returned HTML snippet will be automatically recognized as an Embedded Tweet when Twitter’s widget
258
+ format. The returned HTML snippet will be automatically recognized as an Embedded Tweet when X (formerly Twitter’s) widget
259
259
JavaScript is included on the page.
260
260
* ` getRters() ` - Returns a collection of up to 100 user IDs belonging to users who have retweeted the tweet specified by
261
261
the id parameter.
@@ -266,8 +266,8 @@ It is safe to call `Twitter::forApiV1()` on either a `v1` or `v2` client instanc
266
266
267
267
* ` getTrendsPlace() ` - Returns the top 10 trending topics for a specific WOEID, if trending information is available for
268
268
it.
269
- * ` getTrendsAvailable() ` - Returns the locations that Twitter has trending topic information for.
270
- * ` getTrendsClosest() ` - Returns the locations that Twitter has trending topic information for, closest to a specified
269
+ * ` getTrendsAvailable() ` - Returns the locations that X (formerly Twitter) has trending topic information for.
270
+ * ` getTrendsClosest() ` - Returns the locations that X (formerly Twitter) has trending topic information for, closest to a specified
271
271
location.
272
272
273
273
#### User
@@ -292,7 +292,7 @@ It is safe to call `Twitter::forApiV1()` on either a `v1` or `v2` client instanc
292
292
* ` getSuggestedsMembers() ` - Access the users in a given category of the Twitter suggested user list and return their
293
293
most recent status if they are not a protected user.
294
294
295
- ### Twitter API v2
295
+ ### X (formerly Twitter) API v2
296
296
297
297
#### Tweet Lookup
298
298
0 commit comments