This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b3d4d94
Showing
1,121 changed files
with
164,168 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Classes | ||
|
||
Sailfinder V3.0 will move to object oriented programming so I want a good idea on how I am going to split the API parts. | ||
|
||
### Tinder | ||
|
||
**Profile**<br> | ||
Will contain all the information about the user his profile such as: | ||
- Pictures | ||
- Current location | ||
- Bio | ||
- Schools | ||
- Job | ||
- Gender | ||
- Interested in | ||
- Max search radius | ||
- ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Facebook Graph API | ||
_with Python Requests_ | ||
|
||
**Only for reference since the API clearly documented on the Facebook Developer pages.** | ||
|
||
### Get all albums of users | ||
``` | ||
fb_albums = session.get("https://graph.facebook.com/v2.6/" + fb_user_id + "/albums?access_token=" + fb_token) | ||
``` | ||
|
||
Parameter info: | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td>fb_user_id</td> | ||
<td>**string**: The user id from Facebook for this app.</td> | ||
</tr> | ||
<tr> | ||
<td>fb_token</td> | ||
<td>**string**: A valid FB token for this app and this user.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
### Get all photos of users | ||
``` | ||
fb_photos = session.get("https://graph.facebook.com/v2.6/" + fb_album_id + "/photos?access_token=" + fb_token) | ||
``` | ||
|
||
Parameter info: | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td>fb_album_id</td> | ||
<td>**string**: The album id from Facebook which can be get by quering all the albums from Facebook.</td> | ||
</tr> | ||
<tr> | ||
<td>fb_token</td> | ||
<td>**string**: A valid FB token for this app and this user.</td> | ||
</tr> | ||
</tbody> | ||
</table> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# GIPHY API | ||
_with Python Requests_ | ||
|
||
**Sniffed by myself** | ||
|
||
``` | ||
search_word = search_word.replace(" ", "+") #Confirm with the Giphy API | ||
gifs = session.get("http://api.giphy.com/v1/gifs/search?q=" + search_word + "&api_key=fBEDuhnVCiP16" | ||
``` | ||
|
||
Parameter info: | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td>search_word</td> | ||
<td>**string**: The word on which you want to find GIFs.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
Note: You need to replace every space in the search word by '+' for the GIPHY API. | ||
|
||
*The GIPHY API key for the app Tinder is: `fBEDuhnVCiP16`* |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.