mapado route -> 'mapado-api'
This commit is contained in:
parent
37a84058d1
commit
dde1813f78
12 changed files with 127 additions and 42 deletions
|
|
@ -30,4 +30,8 @@ function buildParamsString($requestParams) {
|
|||
$queryString[] = urlencode($param['name']) . '=' . urlencode($param['value']);
|
||||
}
|
||||
return implode('&', $queryString);
|
||||
}
|
||||
|
||||
function getEventsByMonth($month) {
|
||||
$events = page('programme')->children();
|
||||
}
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
redirect: "follow"
|
||||
};
|
||||
fetch(
|
||||
"https://ticketing.mapado.net/v1/ticketings/" + id.value + "?fields=title,slug,sellingDeviceSchedule",
|
||||
"https://ticketing.mapado.net/v1/ticketings/" + id.value + "?fields=id,title,slug,sellingDeviceSchedule",
|
||||
requestOptions
|
||||
).then((response) => {
|
||||
console.log(response);
|
||||
|
|
@ -78,7 +78,7 @@
|
|||
result.sellingDeviceSchedule[scheduleFirstKey].fr.toLowerCase()
|
||||
);
|
||||
console.log(result);
|
||||
text.value = `<strong>Événement correspondant sur Mapado : <em>${result.title}</em>, ${schedule}.</strong> <a href="https://desk.mapado.com/activity/${result.slug}/events" target="_blank">Gérer sur Mapado.</a>`;
|
||||
text.value = `<strong>Événement correspondant sur Mapado : <em>${result.title}</em>, ${schedule}</strong> (<a href="https://desk.mapado.com/mass-action/ticketing/${id.value}" target="_blank">gérer sur Mapado.</a>).`;
|
||||
}).catch((error) => {
|
||||
icon.value = "alert";
|
||||
theme.value = "red";
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ function connect() {
|
|||
fetch(
|
||||
"https://ticketing.mapado.net/v1/ticketings/" +
|
||||
id.value +
|
||||
"?fields=title,slug,sellingDeviceSchedule",
|
||||
"?fields=id,title,slug,sellingDeviceSchedule",
|
||||
requestOptions
|
||||
)
|
||||
.then((response) => {
|
||||
|
|
@ -91,7 +91,7 @@ function connect() {
|
|||
result.sellingDeviceSchedule[scheduleFirstKey].fr.toLowerCase()
|
||||
);
|
||||
console.log(result);
|
||||
text.value = `<strong>Événement correspondant sur Mapado : <em>${result.title}</em>, ${schedule}.</strong> <a href="https://desk.mapado.com/activity/${result.slug}/events" target="_blank">Gérer sur Mapado.</a>`;
|
||||
text.value = `<strong>Événement correspondant sur Mapado : <em>${result.title}</em>, ${schedule}</strong> (<a href="https://desk.mapado.com/mass-action/ticketing/${id.value}" target="_blank">gérer sur Mapado.</a>).`;
|
||||
})
|
||||
.catch((error) => {
|
||||
icon.value = "alert";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue