Skip to content
Snippets Groups Projects
Commit 2d89818f authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

feat: update url calls to adict/v2

parent 56bff496
1 merge request!20Update master branch
{
"singleQuote": true,
"semi": false
}
......@@ -100,7 +100,7 @@ async function getData(token, idPCE) {
redirect: 'follow'
}
var url =
'https://api.grdf.fr/adict/v1/pce/' +
'https://api.grdf.fr/adict/v2/pce/' +
idPCE +
'/donnees_consos_informatives?date_debut=' +
startDate +
......
......@@ -39,7 +39,7 @@ async function onDeleteAccount(accountId) {
urlencoded.append('grant_type', 'client_credentials')
urlencoded.append('client_id', accountSecret.client_id)
urlencoded.append('client_secret', accountSecret.client_secret)
urlencoded.append('scope', '/adict/v1')
urlencoded.append('scope', '/adict/v2')
var requestOptionsToken = {
method: 'POST',
......@@ -94,7 +94,7 @@ async function onDeleteAccount(accountId) {
}
let accessRights = await fetch(
'https://api.grdf.fr/adict/v1/droits_acces',
'https://api.grdf.fr/adict/v2/droits_acces',
requestOptions
)
.then(async response => {
......@@ -133,7 +133,7 @@ async function onDeleteAccount(accountId) {
redirect: 'follow'
}
var url = 'https://api.grdf.fr/adict/v1/droit_acces/' + accessRights
var url = 'https://api.grdf.fr/adict/v2/droit_acces/' + accessRights
await fetch(url, deleteRequestOptions)
.then(async response => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment