const result = await this.request({
method: 'POST',
url: 'https://prebook.jsreportonline.net/api/report',
headers: {
'Content-Type': 'application/json',
Authorization: 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==',
},
body: {
template: {
shortid: 'B1t-hel6e'
},
data: {
aProperty: 'value'
}
}
}).send();
7CR5iW0vR8Wa8FG
@7CR5iW0vR8Wa8FG
0
Reputation
2
Posts
977
Profile views
0
Followers
0
Following
Posts made by 7CR5iW0vR8Wa8FG
-
RE: error status 401
-
error status 401
method: 'POST',
url: 'https://prebook.jsreportonline.net/api/report',
headers: {
'Content-Type': 'application/json',
'WWW-Authenticate': 'Basic dmFsdGVyOjYwdzFoYWhUYm0wM0RJ=='
},
body: {
template: {
shortid: 'B1t-hel6e'
},
data: {
aProperty: 'value'
}
}
}).send();
How to authenticate?