-
Notifications
You must be signed in to change notification settings - Fork 110
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
Create new client with sdk #822
Comments
The only reference I have found so far is by using RestComm API for clients for which I have to use post http request. Its doable for now but exposing the method through sdk would have been lot better. |
@atsakiridis @ognjenns could you plz share some feedback here? |
@suyashbhatt you are right, this is the way its working right now; you need to take care of creating a client yourself. We are aware of the pain in this part and have plans on improving the UX in this part. Some ideas are either creating a default client per account, or taking care of it inside the SDK as you propose. Let me try to get back to you when I have more news on that. |
@atsakiridis thanks for the feedback here! In that case, do you think it's worth putting a small note at the docs, documenting this fact (and guiding ppl how to create this client)? |
I used retrofit with okhttp to call restcomm api with authorization. I can
provide code snippet for that part if it helps, just let me know.
…On Feb 5, 2018 11:57 AM, "Yorgos Saslis" ***@***.***> wrote:
@atsakiridis <https://github.com/atsakiridis> thanks for the feedback
here!
In that case, do you think it's worth putting a small note at the docs,
documenting this fact (and guiding ppl how to create this client)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#822 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFG8nt25FZpC-pRzyEhYjw59EneUO5k5ks5tRzMAgaJpZM4RoNWL>
.
|
Sure @gsaslis let me open an issue for that. Thanks @suyashbhatt let me get back to you when I have more information |
Opened #846 for this |
cool @atsakiridis - thanks! @suyashbhatt any luck getting this off the ground in the meantime? |
I was successfully able to create new clients and authenticate within my android app. As I mentioned in my last comment I had to use retrofit to make post request and okhttp to create authentication token for retrofit. |
great stuff @suyashbhatt ! In that case, could you perhaps share a code snippet here, for anyone else that stumbles across the same issue? |
Create retrofit interface:
Create new client from Activity:
|
Thanks for sharing @suyashbhatt, much appreciated! |
I was trying to figure out if android sdk allows to register new clients through sdk as well, I have searched a lot and no avail so far. Documentation has no references about creating new client. I have been able to initialize with existing users and use sdk to place calls but to add new client i have to login as administrator and add new client through the web page. It would be great if anyone can provide me some info about how to do it through sdk.
The text was updated successfully, but these errors were encountered: