Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve issues with API changes from Wyze (2024-02-01) #3

Merged
merged 2 commits into from
Feb 4, 2024

Commits on Feb 3, 2024

  1. Resolve issues with API changes from Wyze (2024-02-01)

    - Update check in `_performRequest` to handle `SUCCESS` as valid `msg`,
      this appears to be a change in the API.
    - Update user-agent to be more general, rather than a specific user
      agent from a browser.
    
    Verification of user agent functionality:
    
    ```
    [08:21:03] ~/wyze-homebridge λ curl --write-out '%{http_code}' -SsL --output /dev/null -XPOST -d "{\"email\":\"$EMAIL\",\"password\":\"$PASSWORD\"}" --header "Content-Type: application/json" --header "apikey: $API_KEY" --header "keyid: $KEY_ID" --header "User-Agent: unofficial-wyze-api/1.0" https://auth-prod.api.wyze.com/api/user/login
    200%
    ```
    hgoscenski committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    c61beea View commit details
    Browse the repository at this point in the history
  2. Update src/index.js

    Co-authored-by: TJ <github@tnoor.dev>
    hgoscenski and tj-noor committed Feb 3, 2024
    Configuration menu
    Copy the full SHA
    43254e5 View commit details
    Browse the repository at this point in the history