Skip to content

Commit 7dcca13

Browse files
committed
[TASK] Initial release.
1 parent 6e75afd commit 7dcca13

File tree

5 files changed

+1203
-1
lines changed

5 files changed

+1203
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.idea
1+
.idea
2+
vendor/

README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,70 @@ Add the latest version of tinder-php-sdk to your ```composer.json```
1515
}
1616
```
1717

18+
## Examples
19+
20+
This section contains basic examples on how to use the SDK.
21+
22+
### Authentication
23+
24+
```php
25+
$tinder = new \Pecee\Http\Service\Tinder($fbUserId, $fbToken);
26+
```
27+
28+
### Get user info
29+
30+
```php
31+
$tinder->getUser();
32+
```
33+
34+
### Send message
35+
36+
```php
37+
$tinder->sendMessage($userId, $message);
38+
```
39+
40+
### Report user
41+
42+
```php
43+
$tinder->reportUser($userId);
44+
```
45+
46+
### Update profile
47+
48+
```php
49+
$tinder->updateProfile(array('age_filter_min' => 26, 'gender' => 1, 'age_filter_max' => 18, 'distance_filter' => 14);
50+
```
51+
52+
### Update location
53+
54+
```php
55+
$tinder->updateLocation($lat, $lon);
56+
```
57+
58+
### Like user
59+
60+
```php
61+
$tinder->like($userId);
62+
```
63+
64+
### Pass/dislike user
65+
66+
```php
67+
$tinder->pass($userId);
68+
```
69+
70+
### Get updates
71+
72+
```php
73+
$tinder->updates();
74+
```
75+
76+
### Get recommendations
77+
78+
```php
79+
$tinder->recommendations();
80+
```
81+
1882
## The MIT License (MIT)
1983

2084
Copyright (c) 2015 Simon Sessingø / simple-php-router

0 commit comments

Comments
 (0)