Skip to content

Commit

Permalink
Merge pull request #132 from J7mbo/develop
Browse files Browse the repository at this point in the history
Versioning and readme enhancements
  • Loading branch information
J7mbo committed Jun 23, 2015
2 parents 64de644 + 6d7b7a6 commit 7e7aefc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ twitter-api-php
Simple PHP Wrapper for Twitter API v1.1 calls

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

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

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

**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:
**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:

{
"require": {
Expand Down
1 change: 1 addition & 0 deletions TwitterAPIExchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @package Twitter-API-PHP
* @author James Mallison <[email protected]>
* @license MIT License
* @version 1.0.4
* @link http://github.com/j7mbo/twitter-api-php
*/
class TwitterAPIExchange
Expand Down
17 changes: 17 additions & 0 deletions test/TwitterAPIExchangeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,21 @@ public function testAdditionalCurlOptions()

$this->assertNotCount(1, $data);
}

/**
* Apparently users/lookup was not working with a POST
*
* @see https://github.com/J7mbo/twitter-api-php/issues/70
*/
public function testIssue70()
{
$url = 'https://api.twitter.com/1.1/users/lookup.json';
$method = 'POST';
$params = array(
'screen_name' => 'lifehacker'
);

$data = $this->exchange->request($url, $method, $params);
$this->assertContains('created_at', $data);
}
}

0 comments on commit 7e7aefc

Please sign in to comment.