Page 1 of 2

Users list

Posted: Sat Feb 15, 2014 7:22 am
by Alex Paret

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.


Users list

Posted: Sat Feb 15, 2014 8:12 am
by Illya Stepanov

Hi Alex,

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


Users list

Posted: Sat Feb 15, 2014 5:27 pm
by Alex Paret

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?


Users list

Posted: Sat Feb 15, 2014 6:05 pm
by Alena Prykhodko

Hello Alex,

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


Users list

Posted: Sun Feb 16, 2014 2:56 am
by Alex Paret

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


Users list

Posted: Sun Feb 16, 2014 3:23 am
by Igor

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


Users list

Posted: Sun Feb 16, 2014 4:28 am
by Alex Paret

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


Users list

Posted: Sun Feb 16, 2014 5:35 am
by Igor

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?


Users list

Posted: Mon Feb 17, 2014 6:53 am
by Alex Paret
  1. Done. Working.
    1. Done. Working.
    2. Not working. See attached pic of Request settings. Image

Users list

Posted: Mon Feb 17, 2014 6:04 pm
by Maryna Brodina

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