[#864] Hey when i use Rest api it give me 401 not Authorize

Migrated from Redmine #864 | Author: group 45
Status: New | Priority: High, I’m very impatient | Created: 2022-04-03


as you can see in the image below as soon as i make a get call to
https://user-api-v2.simplybook.me/admin/products/1?Content-Type=application/json&X-Company-Login=kroppskontroll&X-Token=d9f267523a00edf1a20c5f3ec46bd97084c81c0c16176081099f5c4d5132e935
with authentic token and company login it give me an error

Redmine Admin wrote:

please follow docs here API documentation | SimplyBook.me Online Scheduling

group 45 wrote:

Redmine Admin wrote:

please follow docs here API documentation | SimplyBook.me Online Scheduling

Hellow sir! i did same as it say in the Documentation but for some reason it say error 401 not authorize even i am passing the token and company login as in picture you can see but still it say not authorize

Redmine Admin wrote:

hi, please provide your raw http requests

group 45 wrote:

Redmine Admin wrote:

hi, please provide your raw http requests

Hellow sir !
here is a picture sir

group 45 wrote:

!!

(Short original content)

group 45 wrote:

group 45 wrote:

Redmine Admin wrote:

hi, please provide your raw http requests

Hellow sir !
here is a picture sir

i am unable to upload picture can i mail it ?

Redmine Admin wrote:

please provide raw http request in text format here

group 45 wrote:

Request i make is GET request :
https://user-api-v2.simplybook.me/admin/products/1?Content-Type=application/json&X-Company-Login=kroppskontroll&X-Token=7b947d19ee0510470df71fc81c960ace3d0e6e2524f91d3c347af90271d560e2

Response i get in raw Format is
{“code”:401,“message”:“Unauthorized”,“data”:,“message_data”:}

Dmytro Bondarev wrote:

Hi, you should pass X-Token and X-Company-Login in headers.

group 45 wrote:

Dmitry Bondarev wrote:

Hi, you should pass X-Token and X-Company-Login in headers.

i am passing them brother as you can see here
https://user-api-v2.simplybook.me/admin/products/1?Content-Type=application/json&X-Company-Login=kroppskontroll&X-Token=7b947d19ee0510470df71fc81c960ace3d0e6e2524f91d3c347af90271d560e2

Dmytro Bondarev wrote:

Hi,

It is not headers, it is GET parameters.

group 45 wrote:

Dmitry Bondarev wrote:

Hi,

It is not headers, it is GET parameters.

HTTP/1.1: Header Field Definitions

Hellow brother i am using postman for the request and i am passing all the headers in headers section do can you please do an example ? in axios i am passing it through making a config file and passing it after the url , config

(config = {

headers: {
header1: value,
}
}

and yes i am resuing the token everytime but it dont work