Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Nov 5, 2022. It is now read-only.
/pyLatchPublic archive

A simple and basic API wrapper for Latch written in Python

License

NotificationsYou must be signed in to change notification settings

rubegartor/pyLatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://img.shields.io/badge/Python-3.6%20%7C%203.7-blue.svghttps://img.shields.io/badge/version-1.1.0-orange.svghttps://img.shields.io/badge/API%20Version-v1.3-brightgreen.svg

A simple and basic API wrapper for Latch written in Python

Installation

# Windowspython -m pip install pyLatch#Linux/OS Xpython3 -m pip install pyLatch

Code Examples

Basic code:

importpyLatchpyLatch.Latch('APPID','APPSECRET')

How to pair:

importpyLatchlatch=pyLatch.Latch('APPID','APPSECRET')resp=latch.pair('pairCode')# resp = {'data': {'accountId': 'accountID'}}

Obtaining status:

importpyLatchlatch=pyLatch.Latch('APPID','APPSECRET')resp=latch.status('accountID')# resp = {'data': {'operations': {'APP_ID': {'status': 'on'}}}}

Unpair account:

importpyLatchlatch=pyLatch.Latch('APPID','APPSECRET')resp=latch.unpair('accountID')# resp = {}

Use custom proxy:

importpyLatchlatch=pyLatch.Latch('APPID','APPSECRET')latch.setProxy('PROXY_HOST','PROXY_PORT')

About

A simple and basic API wrapper for Latch written in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp