Alex Paret
Posts: 0
Joined: Fri Feb 14, 2014 11:56 pm

Users list

How do I get a list of users accounts from the database? I see I can import Login/LogOff/SignUp but I don't see anything for getting a users list.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Users list

Hi Alex,

Please take a look here:
:: http://docs.appery.io/documentation/b...

Alex Paret
Posts: 0
Joined: Fri Feb 14, 2014 11:56 pm

Users list

Ok, I am missing something here. How do I create a custom service to do this? Do you have a tutorial? Also how do create a custom service for these CURL commands?

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Users list

Hello Alex,

Please see here http://docs.appery.io/documentation/r...
Most every tutorial has services settings http://docs.appery.io/tutorials/

Alex Paret
Posts: 0
Joined: Fri Feb 14, 2014 11:56 pm

Users list

I am still having difficulty understanding how to create a custom service. Could you create one in the test project in my account? Thanks

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Users list

Could you show us what exactly you tried and what doesn't work?

Alex Paret
Posts: 0
Joined: Fri Feb 14, 2014 11:56 pm

Users list

I created a custom service with that url but am getting this error when I test it:

"status":"401 Unauthorized",
"url":"https://api.appery.io/rest/1/db/users",
"response":{
"code":"DBUQ001",
"description":"unauthorized"
} Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Users list

This is the steps what you should do:

  1. Create Users data collection.
    http://docs.appery.io/documentation/b...
    http://docs.appery.io/tutorials/build...

  2. Create login service. You need this service to get sessionToken
    http://docs.appery.io/documentation/b...

  3. Create REST service with parameters
    http://docs.appery.io/documentation/b...

    Please make sure that you use correct sessionToken in your service request parameter "X-Appery-Session-Token".
    Could you also add service request tab screenshot?

Alex Paret
Posts: 0
Joined: Fri Feb 14, 2014 11:56 pm

Users list

  1. Done. Working.
    1. Done. Working.
    2. Not working. See attached pic of Request settings. Image
Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Users list

Hello! Have you specified valid sessionToken while testing? What error you have when test?

Return to “Issues”