tindy 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +104 -2
- data/lib/tindy/client.rb +1 -1
- data/lib/tindy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 477780c27f4285f9cb739331381819abb17f1366bcf6b352680e504d207a5185
|
4
|
+
data.tar.gz: f2b6edc0cbbe0e4aeebec40d5795a00bede6b992c46c598e20bf76e7b4fb4624
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76a2790d18eaa5b3d3f013d044f58dc12112aa75f9c31da431a4651001b3988f2b1ccdede29194d8b907f4a18ff8452a4d73074e1de4229bfd005c84e17e7668
|
7
|
+
data.tar.gz: 0a37134a48e5c64ad45c41081cd866cfd132ec3f261d5b2cb0e93ce09bdb900cda6f0380e370a92996d7cc0f39056ee9ff860ea4a943fcb8e0fdd130da9df4b0
|
data/README.md
CHANGED
@@ -1,3 +1,105 @@
|
|
1
1
|
# tindy
|
2
|
-
|
3
|
-
|
2
|
+
A shitty ruby client for Tinder (using [this doc](https://gist.github.com/rtt/10403467) as a reference)
|
3
|
+
|
4
|
+
## Installation
|
5
|
+
|
6
|
+
Bundler
|
7
|
+
|
8
|
+
```
|
9
|
+
gem 'tindy'
|
10
|
+
```
|
11
|
+
|
12
|
+
Other
|
13
|
+
|
14
|
+
```
|
15
|
+
[sudo|rvm] gem install tindy
|
16
|
+
```
|
17
|
+
|
18
|
+
## Getting Started
|
19
|
+
Require tindy and initialize the client with your Facebook access token ([instructions](https://gist.github.com/taseppa/66fc7239c66ef285ecb28b400b556938))
|
20
|
+
|
21
|
+
```
|
22
|
+
require 'tindy'
|
23
|
+
|
24
|
+
tindy = Tindy::Client.new("YOUR_FACEBOOK_ACCESS_TOKEN")
|
25
|
+
```
|
26
|
+
|
27
|
+
### Recommendations
|
28
|
+
Returns a list of recommended Tinder users
|
29
|
+
|
30
|
+
```
|
31
|
+
tindy.recommentations
|
32
|
+
```
|
33
|
+
|
34
|
+
### Like/Pass
|
35
|
+
Like or pass a user
|
36
|
+
```
|
37
|
+
# like user
|
38
|
+
tindy.like(12345)
|
39
|
+
|
40
|
+
# pass user
|
41
|
+
tindy.pass(12345)
|
42
|
+
```
|
43
|
+
|
44
|
+
### Updates
|
45
|
+
Get recent updates
|
46
|
+
```
|
47
|
+
tindy.updates
|
48
|
+
```
|
49
|
+
### Report Users
|
50
|
+
Report a user
|
51
|
+
```
|
52
|
+
# report a user for spam
|
53
|
+
tindy.report_user(12345, :spam)
|
54
|
+
|
55
|
+
# report a user for being offensive/inappropriate
|
56
|
+
tindy.report_user(12345, :offensive)
|
57
|
+
tindy.report_user(12345, :inappropriate)
|
58
|
+
```
|
59
|
+
|
60
|
+
### Send Message
|
61
|
+
(I haven't tested if this works)
|
62
|
+
Send a message to one of your matches
|
63
|
+
```
|
64
|
+
tindy.send_message(12345, "Hey how are you?")
|
65
|
+
```
|
66
|
+
|
67
|
+
### Update Location
|
68
|
+
Update your location
|
69
|
+
```
|
70
|
+
tindy.update_location(-27.469770, 153.025131)
|
71
|
+
```
|
72
|
+
|
73
|
+
### Update Profile
|
74
|
+
Update your profile either individually or multiple at once
|
75
|
+
```
|
76
|
+
# update multiple (gender: <0|1>, age_filter_min: <number>, age_filter_max: <number>, update_distance: <number>
|
77
|
+
tindy.update_profile(age_filter_min: 20, age_filter_max: 26)
|
78
|
+
|
79
|
+
# update gender
|
80
|
+
tindy.update_gender(:male)
|
81
|
+
tindy.update_gender(:female)
|
82
|
+
|
83
|
+
# update minumum age
|
84
|
+
tindy.update_min_age(20)
|
85
|
+
|
86
|
+
# update maximum age
|
87
|
+
tindy.update_max_age(26)
|
88
|
+
|
89
|
+
# update distance (km)
|
90
|
+
tindy.update_distance(15)
|
91
|
+
```
|
92
|
+
|
93
|
+
## Future Plans
|
94
|
+
I'm not really taking this gem that seriously but I may add in more functionality, tests (lmao), and whatever else if I find the time.
|
95
|
+
|
96
|
+
## Contributing
|
97
|
+
|
98
|
+
Just schmang up a PR and I'll check it out
|
99
|
+
|
100
|
+
## License
|
101
|
+
|
102
|
+
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
|
103
|
+
|
104
|
+
## Acknowledgments
|
105
|
+
Couldn't have been build without [this doc](https://gist.github.com/rtt/10403467) and the people commenting on it <3
|
data/lib/tindy/client.rb
CHANGED
@@ -79,7 +79,7 @@ module Tindy
|
|
79
79
|
facebook_id: TINDER_APP_ID
|
80
80
|
}.to_json
|
81
81
|
|
82
|
-
res = post('/auth', auth_obj)
|
82
|
+
res = self.class.post(BASE_ENDPOINT + '/auth', headers: headers, body: auth_obj)
|
83
83
|
|
84
84
|
raise "Failed to authenticate. Response body: #{res.body}" if res.code != 200
|
85
85
|
|
data/lib/tindy/version.rb
CHANGED