Skip to content

callmephilip/Sugarsync-Python-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SugarSync Python API (unofficial and very incomplete)

What's in the box

Not much. You can authenticate to SugarSync using their pseudo OAuth model. Here's how you do it

from sugarsync.auth.RefreshToken import RefreshToken
from sugarsync.auth.AccessToken import AccessToken

refresh_token = RefreshToken.getRefreshToken("email", "password", "application-id", "access-key", "private-access-key")
access_token = AccessToken.getAccessToken("access-key", "private-access-key", str(refresh_token))

Or you can use a shortcut:

from sugarsync.auth import authenticate

access_token, refresh_token  = authenticate("email","password", "application-id", "app-key", "app-secret")

print "Access token: %s" % access_token
print "Refresh token: %s" % refresh_token 

About

Very unofficial and very incomplete SugarSync API for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages