Created
February 20, 2020 22:34
-
-
Save isleshocky77/03a5eae126134bb08d47ecaab36fb196 to your computer and use it in GitHub Desktop.
Lift Master / MyQ / Chamberlain API Usage with cURL (and jq)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MYQ_EMAIL="" | |
MYQ_PASSWORD="" | |
MYQ_API_URI="https://myqexternal.myqdevice.com/api/v4" | |
MYQ_APP_ID="JVM/G9Nwih5BwKgNCjLxiFUQxQijAebyyg8QUHr7JOrP+tuPb8iHfRHKwTmDzHOu" | |
curl "$MYQ_API_URI/User/Validate" \ | |
-d '{"username":"'$MYQ_EMAIL'","password":"'$MYQ_PASSWORD'"}' \ | |
-H 'Content-Type: application/json' \ | |
-H 'User-Agent: Chamberlain/3.73' \ | |
-H 'BrandID: 2' \ | |
-H 'ApiVersion: 4.1' \ | |
-H 'Culture: en' \ | |
-H 'MyQApplicationID: '$MYQ_APP_ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment