![]() Recipients can either be a string or a list. Send_snap(snap, recipients) - sends a snap. Birthdays need to be in the format 'YYYY-MM-DD'. Register(username, password, birthday, email) - registers an account with the corresponding information. Get_snaps(mark_viewed, mark_screenshotted, mark_replayed) - retrieves all new snaps. The library is being imported, logging in with the given credentials and then running a constant loop that will check for new updates (snap, friends, etc).īegin(timeout, mark_viewed, mark_screenshotted, mark_replayed) - starts a permanent cycle (with a delay on each iteration) of looking for new snaps and checking for newly added/deleted users. The following code will simply initiate a class with three "listener" functions that are called appropriately after you call the begin() method. I've added more functions - such as an easier way to save snaps and the ability to mark a snap as replayed. This library does slightly differ to agermanidis' apart from the endpoints. While finding, inspecting and implementing the newest endpoints I've documented everything I thought necessary. ![]() SnapWrap's is based directly off agermanidis' library which includes martinp's library (to deal with low level access to the API) - this library includes the newest endpoints of Snapchat's API ( loq) and are used when possible. This library would not be possible without agermanidis or martinp. SnapWrap is essentially an API wrapper for Snapchat's API but includes many functions that increase functionality and easability when conversing with Snapchat's API. ![]() SnapWrap Wrapper for the unofficial and undocumented Snapchat API. ![]()
0 Comments
Leave a Reply. |