Skip to content

naviprojects/latch-sdk-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LATCH PYTHON SDK

#### PREREQUISITES ####

USING THE SDK IN PYTHON

  • Import "latch" module.
	import latch
  • Create a Latch object with the "Application ID" and "Secret" previously obtained.
	api = latch.Latch("APP_ID_HERE", "SECRET_KEY_HERE")
  • Optional settings:
	latch.Latch.set_proxy("PROXY_HOST_HERE", port)
  • Call to Latch Server. Pairing will return an account id that you should store for future api calls
	response = api.pair("PAIRING_CODE_HERE")
	response = api.status("ACCOUNT_ID_HERE")
	response = api.unpair("ACCOUNT_ID_HERE")
  • After every API call, get Latch response data and errors and handle them.
	responseData = response.get_data()
	responseError = response.get_error()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%