Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 7e7aefc

Browse files
committed
Merge pull request #132 from J7mbo/develop
Versioning and readme enhancements
2 parents 64de644 + 6d7b7a6 commit 7e7aefc

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ twitter-api-php
44
Simple PHP Wrapper for Twitter API v1.1 calls
55

66
[![Total Downloads](https://img.shields.io/packagist/dt/j7mbo/twitter-api-php.svg)](https://packagist.org/packages/j7mbo/twitter-api-php)
7-
[![Build Status](https://travis-ci.org/J7mbo/twitter-api-php.svg?branch=master)](https://packagist.org/packages/j7mbo/twitter-api-php)
7+
[![Build Status](https://travis-ci.org/J7mbo/twitter-api-php.svg?branch=master)](https://travis-ci.org/J7mbo/twitter-api-php)
8+
[![Version](https://badge.fury.io/gh/j7mbo%2Ftwitter-api-php.svg)](https://packagist.org/packages/j7mbo/twitter-api-php)
89

910
**[Changelog](https://github.com/J7mbo/twitter-api-php/wiki/Changelog)** ||
1011
**[Examples](https://github.com/J7mbo/twitter-api-php/wiki/Twitter-API-PHP-Wiki)** ||
@@ -30,7 +31,7 @@ Installation
3031

3132
**Normally:** If you *don't* use composer, don't worry - just include TwitterAPIExchange.php in your application.
3233

33-
**Via Composer:** If you realise it's 2015 now and you *do* use composer, here's what you add to your composer.json file to have TwitterAPIExchange.php automatically imported into your vendor's folder:
34+
**Via Composer:** If you realise it's 2015 now and you *do* use composer, here's what you add to your composer.json file to have TwitterAPIExchange.php automatically imported into your vendors folder:
3435

3536
{
3637
"require": {

TwitterAPIExchange.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @package Twitter-API-PHP
1010
* @author James Mallison <[email protected]>
1111
* @license MIT License
12+
* @version 1.0.4
1213
* @link http://github.com/j7mbo/twitter-api-php
1314
*/
1415
class TwitterAPIExchange

test/TwitterAPIExchangeTest.php

+17
Original file line numberDiff line numberDiff line change
@@ -286,4 +286,21 @@ public function testAdditionalCurlOptions()
286286

287287
$this->assertNotCount(1, $data);
288288
}
289+
290+
/**
291+
* Apparently users/lookup was not working with a POST
292+
*
293+
* @see https://github.com/J7mbo/twitter-api-php/issues/70
294+
*/
295+
public function testIssue70()
296+
{
297+
$url = 'https://api.twitter.com/1.1/users/lookup.json';
298+
$method = 'POST';
299+
$params = array(
300+
'screen_name' => 'lifehacker'
301+
);
302+
303+
$data = $this->exchange->request($url, $method, $params);
304+
$this->assertContains('created_at', $data);
305+
}
289306
}

0 commit comments

Comments
 (0)