@@ -181,19 +181,19 @@ public static function Blocks_Blocking_Ids($a)
181
181
public static function Blocks_Create ($ a )
182
182
{
183
183
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
184
- return Codebird::CallApiPost ('blocks/create/ ' . intval ( $ a ['id ' ]) , $ a , true );
184
+ return Codebird::CallApiPost ('blocks/create/ ' . $ a ['id ' ], $ a , true );
185
185
}
186
186
187
187
public static function Blocks_Destroy ($ a )
188
188
{
189
189
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
190
- return Codebird::CallApiPost ('blocks/destroy/ ' . intval ( $ a ['id ' ]) , $ a , true );
190
+ return Codebird::CallApiPost ('blocks/destroy/ ' . $ a ['id ' ], $ a , true );
191
191
}
192
192
193
193
public static function Blocks_Exists ($ a )
194
194
{
195
195
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
196
- return Codebird::CallApiGet ('blocks/exists/ ' . intval ( $ a ['id ' ]) , $ a , true );
196
+ return Codebird::CallApiGet ('blocks/exists/ ' . $ a ['id ' ], $ a , true );
197
197
}
198
198
199
199
public static function DirectMessages ($ a )
@@ -204,8 +204,7 @@ public static function DirectMessages($a)
204
204
public static function DirectMessages_Destroy ($ a )
205
205
{
206
206
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
207
- return Codebird::CallApiPost ('direct_messages/destroy/ ' . intval ($ a ['id ' ]),
208
- $ a , true );
207
+ return Codebird::CallApiPost ('direct_messages/destroy/ ' . $ a ['id ' ], $ a , true );
209
208
}
210
209
211
210
public static function DirectMessages_New ($ a )
@@ -226,13 +225,13 @@ public static function Favorites($a)
226
225
public static function Favorites_Create ($ a )
227
226
{
228
227
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
229
- return Codebird::CallApiPost ('favorites/create/ ' . intval ( $ a ['id ' ]) , $ a , true );
228
+ return Codebird::CallApiPost ('favorites/create/ ' . $ a ['id ' ], $ a , true );
230
229
}
231
230
232
231
public static function Favorites_Destroy ($ a )
233
232
{
234
233
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
235
- return Codebird::CallApiPost ('favorites/destroy/ ' . intval ( $ a ['id ' ]) , $ a , true );
234
+ return Codebird::CallApiPost ('favorites/destroy/ ' . $ a ['id ' ], $ a , true );
236
235
}
237
236
public static function Followers_Ids ($ a )
238
237
{
@@ -247,14 +246,13 @@ public static function Friends_Ids($a)
247
246
public static function Friendships_Create ($ a )
248
247
{
249
248
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
250
- return Codebird::CallApiPost ('friendships/create/ ' . intval ( $ a ['id ' ]) , $ a , true );
249
+ return Codebird::CallApiPost ('friendships/create/ ' . $ a ['id ' ], $ a , true );
251
250
}
252
251
253
252
public static function Friendships_Destroy ($ a )
254
253
{
255
254
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
256
- return Codebird::CallApiPost ('friendships/destroy/ ' . intval ($ a ['id ' ]),
257
- $ a , true );
255
+ return Codebird::CallApiPost ('friendships/destroy/ ' . $ a ['id ' ], $ a , true );
258
256
}
259
257
260
258
public static function Friendships_Exists ($ a )
@@ -270,7 +268,7 @@ public static function Friendships_Show($a)
270
268
public static function Geo_Id ($ a )
271
269
{
272
270
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
273
- return Codebird::CallApiGet ('geo/id/ ' . intval ( $ a ['id ' ]) , $ a , true );
271
+ return Codebird::CallApiGet ('geo/id/ ' . $ a ['id ' ], $ a , true );
274
272
}
275
273
276
274
public static function Geo_NearbyPlaces ($ a )
@@ -316,15 +314,13 @@ public static function Legal_Tos()
316
314
public static function Notifications_Follow ($ a )
317
315
{
318
316
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
319
-
6D4E
return Codebird::CallApiPost ('notifications/follow/ ' . intval ($ a ['id ' ]),
320
- $ a , true );
317
+ return Codebird::CallApiPost ('notifications/follow/ ' . $ a ['id ' ], $ a , true );
321
318
}
322
319
323
320
public static function Notifications_Leave ($ a )
324
321
{
325
322
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
326
- return Codebird::CallApiPost ('notifications/leave/ ' . intval ($ a ['id ' ]),
327
- $ a , true );
323
+ return Codebird::CallApiPost ('notifications/leave/ ' . $ a ['id ' ], $ a , true );
328
324
}
329
325
330
326
public static function Oauth_RequestToken ($ a )
@@ -334,8 +330,8 @@ public static function Oauth_RequestToken($a)
334
330
335
331
public static function Oauth_Authorize ()
336
332
{
337
- return 'https://api.twitter.com/oauth/authorize?oauth_token= ' .
338
- Codebird:: Url (Codebird::$ token ['k ' ]);
333
+ return 'https://api.twitter.com/oauth/authorize?oauth_token= ' . Codebird::
334
+ Url (Codebird::$ token ['k ' ]);
339
335
}
340
336
341
337
public static function Oauth_AccessToken ($ a )
@@ -361,22 +357,20 @@ public static function SavedSearches_Create($a)
361
357
public static function SavedSearches_Destroy ($ a )
362
358
{
363
359
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
364
- return Codebird::CallApiPost ('saved_searches/destroy/ ' . intval ( $ a ['id ' ]),
365
- array (), true );
360
+ return Codebird::CallApiPost ('saved_searches/destroy/ ' . $ a ['id ' ], array
361
+ (), true );
366
362
}
367
363
368
364
public static function SavedSearches_Show ($ a )
369
365
{
370
366
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
371
- return Codebird::CallApiPost ('saved_searches/show/ ' . intval ($ a ['id ' ]),
372
- $ a , true );
367
+ return Codebird::CallApiPost ('saved_searches/show/ ' . $ a ['id ' ], $ a , true );
373
368
}
374
369
375
370
public static function Statuses_Destroy ($ a )
376
371
{
377
372
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
378
- return Codebird::CallApiPost ('statuses/destroy/ ' . intval ($ a ['id ' ]),
379
- array (), true );
373
+ return Codebird::CallApiPost ('statuses/destroy/ ' . $ a ['id ' ], array (), true );
380
374
}
381
375
382
376
public static function Statuses_Followers ($ a )
@@ -402,15 +396,14 @@ public static function Statuses_HomeTimeline($a)
402
396
public static function Statuses_RetweetedBy ($ a )
403
397
{
404
398
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
405
- return Codebird::CallApiGet ('statuses/ ' . intval ($ a ['id ' ]) .
406
- '/retweeted_by ' , $ a , true );
399
+ return Codebird::CallApiGet ('statuses/ ' . $ a ['id ' ] . '/retweeted_by ' , $ a , true );
407
400
}
408
401
409
402
public static function Statuses_RetweetedBy_Ids ($ a )
410
403
{
411
404
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
412
- return Codebird::CallApiGet ('statuses/ ' . intval ( $ a ['id ' ]) .
413
- ' /retweeted_by/ids ' , $ a , true );
405
+ return Codebird::CallApiGet ('statuses/ ' . $ a ['id ' ] . ' /retweeted_by/ids ' ,
406
+ $ a , true );
414
407
}
415
408
416
409
public static function Statuses_Mentions ($ a )
@@ -436,14 +429,13 @@ public static function Statuses_PublicTimeline()
436
429
public static function Statuses_Retweet ($ a )
437
430
{
438
431
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
439
- return Codebird::CallApiPost ('statuses/retweet/ ' . intval ($ a ['id ' ]),
440
- array (), true );
432
+ return Codebird::CallApiPost ('statuses/retweet/ ' . $ a ['id ' ], array (), true );
441
433
}
442
434
443
435
public static function Statuses_Retweets ($ a )
444
436
{
445
437
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
446
- return Codebird::CallApiGet ('statuses/retweets/ ' . intval ( $ a ['id ' ]) , $ a , true );
438
+ return Codebird::CallApiGet ('statuses/retweets/ ' . $ a ['id ' ], $ a , true );
447
439
}
448
440
449
441
public static function Statuses_RetweetedByMe ($ a )
@@ -464,7 +456,7 @@ public static function Statuses_RetweetsOfMe($a)
464
456
public static function Statuses_Show ($ a )
465
457
{
466
458
if (!isset ($ a ['id ' ])) throw new Exception ('Missing parameter id. ' );
467
- return Codebird::CallApiGet ('statuses/show/ ' . intval ( $ a ['id ' ]) , $ a , true );
459
+ return Codebird::CallApiGet ('statuses/show/ ' . $ a ['id ' ], $ a , true );
468
460
}
469
461
470
462
public static function Statuses_Update ($ a )
@@ -480,7 +472,7 @@ public static function Statuses_UserTimeline($a)
480
472
public static function Trends ($ a )
481
473
{
482
474
if (!isset ($ a ['woeid ' ])) throw new Exception ('Missing parameter woeid. ' );
483
- return Codebird::CallApiGet ('trends/ ' . intval ( $ a ['id ' ]) , $ a , true );
475
+ return Codebird::CallApiGet ('trends/ ' . $ a ['id ' ], $ a , true );
484
476
}
485
477
486
478
public static function Trends_Available ($ a )
@@ -641,7 +633,8 @@ public static function Users_Lookup($a)
641
633
public static function Users_ProfileImage ($ a )
642
634
{
643
635
if (!isset ($ a ['screen_name ' ])) throw new Exception ('Missing parameter screen_name. ' );
644
- return Codebird::CallApiGet ('users/profile_image/ ' . $ a ['screen_name ' ], $ a , true );
636
+ return Codebird::CallApiGet ('users/profile_image/ ' . $ a ['screen_name ' ],
637
+ $ a , true );
645
638
}
646
639
647
640
public static function Users_Search ($ a )
0 commit comments