Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

LATCH RUBY SDK

#### PREREQUISITES ####

USING THE SDK IN RUBY

  • Require "Latch". Keep in mind where the SDK is placed inside your folder structure.
	require_relative '/latch/Latch'
  • Create a Latch object with the "Application ID" and "Secret" previously obtained.
	api = Latch.new(appid, app_secret)
  • Call to Latch Server. Pairing will return an account id that you should store for future api calls
     pairResponse = api.pair(PAIRING_CODE_HERE)
     statusResponse = api.status(ACCOUNT_ID_HERE)
     unpairResponse = api.unpair(ACCOUNT_ID_HERE)
  • After every API call, get Latch response data and errors and handle them.
	responseData = response.data
	responseError = response.error

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Languages

You can’t perform that action at this time.