goautodial / goAPIv2

GOautodial APIs Version 2: Improved queries (Prepared Statements, Code Cleaning)
GNU Affero General Public License v3.0
14 stars 29 forks source link

Unable to request on API #48

Open possebon opened 1 year ago

possebon commented 1 year ago

Hi,

I'm trying the API and I'm doing some GET requests using Postman like

{{url}}/goAPIv2/goUsers/goAPI.php?goUser=goAPI&goPass=hash_passwd&goAction=goGetUserInfo&responsetype=json&session_user=goadmin&user_id=1

{"code":"10001","result":"Error: You do not have permission to view this page in Insufficient permission."}

Same error occurs for ReadAllUsers

{{url}}/goAPIv2/goUsers/goAPI.php?goUser=goAPI&goPass=hash_passwd&goAction=goGetAllUserLists&responsetype=json&session_user=goadmin

I could not find any information regarding this error.

Thanks in advance.

demianb commented 1 year ago

Please use our community forums in https://goautodial.com.

This is the correct API for getting all users:

{{url}}/goUsers/goAPI.php?goUser=goAPI&goPass=hash_passwd&responsetype=json&session_user=goadmin&goAction=goGetAllUsers

Particular user:

{{url}}/goUsers/goAPI.php?goUser=goAPI&goPass=hash_passwd&responsetype=json&session_user=goadmin&goAction=goGetUserInfo&user=agent001