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

What is the endpoint I can use if I wanted to programatically create an account? #72

Open
Randy1Burrell opened this issue Sep 15, 2023 · 6 comments

Comments

@Randy1Burrell
Copy link

Hi @MattTW, thank you for this lib. One feature is missing that I need to use. If you can point me in the right direction then I can add it in myself. Do you know the REST endpoint Blink uses when creating accounts?

Thank you in advance!!

@amattu2
Copy link

amattu2 commented Dec 13, 2023

@Randy1Burrell

POST {{baseurl}}api/v6/account/register

Minimal Body

{
    "email": "{email}",
    "password": "{{password}}",
    "password_confirm": "{{password}}",
    "reauth": false,
    "country": "u014" // OPTIONAL: defaults to eu
}

Note: The register post body extends the login body, so I'd recommend including unique_Id, device_identifier, and client_name at a minimum.

The response is nearly identical to the login endpoint. You will need to verify the pin emailed to you. Likely using the same API endpoint as described during the login process.

@Randy1Burrell
Copy link
Author

Randy1Burrell commented Dec 13, 2023

Thanks 🙏🏿 man. What is the baseurl?

@amattu2
Copy link

amattu2 commented Dec 13, 2023

Thanks 🙏🏿 man. What is the baseurl?

Base URL aka "initial server URL" is https://rest-prod.immedia-semi.com/

@Randy1Burrell
Copy link
Author

In your experience, do they throttle your requests? I'm building something that will need to pull loads of videos from their APIs.

@Randy1Burrell
Copy link
Author

Also, do you know what the country codes are? Or can you point me in the direction where I can find these details out myself?

@amattu2
Copy link

amattu2 commented Dec 13, 2023

@Randy1Burrell In your experience, do they throttle your requests? I'm building something that will need to pull loads of videos from their APIs.

I'm not actually sure. I just started looking into their API today. I'd recommend simulating what a typical user can do and staggering your requests.

Also, do you know what the country codes are? Or can you point me in the direction where I can find these details out myself?

I just realized the u014 country in my example isn't actually an option, so ignore that. The country code API is here:

GET https://rest-prod.immedia-semi.com/api/v1/countries

It returns a very long list otherwise I'd include it. I guess you'd pick one of those during registration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants