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

How to create a site? #14

Closed
reillychase opened this issue Mar 26, 2018 · 6 comments
Closed

How to create a site? #14

reillychase opened this issue Mar 26, 2018 · 6 comments

Comments

@reillychase
Copy link

Cool API library thanks!

Do you have an API call to create a site?

An API call to create a user for a site?

@malle-pietje
Copy link
Collaborator

Create a site, yes:
https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php#L861

Assign a user to a site, not yet.

@reillychase
Copy link
Author

Nice work, thanks!

@malle-pietje
Copy link
Collaborator

Thanks, you’re welcome!

@malle-pietje
Copy link
Collaborator

@reillychase Could you have look at this commit to see whether that covers your question regarding user creation? bf9a6e8

@reillychase
Copy link
Author

Nice! Very clean code. Yes that covers it. You might note that this also covers re-inviting an admin, you can simply call the invite-admin function again to send a second invite email.

I actually ended up writing my program in Python but your library was a big help in understanding the API.

@malle-pietje
Copy link
Collaborator

Thanks for the feedback. Will add that remark regarding re-invite to the comments.

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