You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SERVER="127.0.0.1" # connect to this server
PORT=8080 # at this port
BASE_URL="" # with this relative URL (has to start with /)
# http://SERVER:PORT/BASE_URL
How to use the REST-Python-Binding
Example 1: Register a user
>>> import RESTBackMeUp
>>> help (RESTBackMeUp) # prints all available operations
>>> result = RESTBackMeUp.register_user("Username", "Secretpassword", "Secretpassword2", "username@user.mail.com") # register a new user
>>> result.code # the error code of the http request
204
>>> result.data # no json data has been sent back
''
>>> result.location # no location header within this answer