From 01edb8cded8a89b3984c8620f357a861a37f9507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sessing=C3=B8?= Date: Thu, 29 Sep 2016 15:34:35 +0200 Subject: [PATCH] Added Tinder Social group support. --- README.md | 2 ++ src/Pecee/Http/Service/Tinder.php | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f90ec15..e6a9f8c 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,8 @@ $tinder->updates(); ### Get recommendations +Get users and groups (Tinder Social) recommendations. + ```php $tinder->recommendations(); ``` diff --git a/src/Pecee/Http/Service/Tinder.php b/src/Pecee/Http/Service/Tinder.php index 7f304e4..e59a857 100644 --- a/src/Pecee/Http/Service/Tinder.php +++ b/src/Pecee/Http/Service/Tinder.php @@ -39,10 +39,11 @@ public function api($url = null, $method = self::METHOD_GET, array $data = array $this->httpRequest->setHeaders(array( 'X-Auth-Token: '. $this->authToken, 'Content-type: application/json; charset=utf-8', - 'app_version: 3', + 'app_version: 1637', 'platform: ios', 'User-Agent: Tinder/2.2.2 (iPhone; iOS 7.0.2; Scale/2.00)', - 'os_version: 700001' + 'os_version: 700001', + 'app-version: 1637' )); return json_decode(parent::api($url, $method, $data)->getResponse());