Add body
This commit is contained in:
parent
ea65701de0
commit
00bf5aca90
3 changed files with 3 additions and 3 deletions
|
@ -1 +1 @@
|
||||||
Thu Apr 3 15:56:11 UTC 2025
|
Thu Apr 3 16:14:40 UTC 2025
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
51cbf1e2fd697adb730eda009308e84633e2bda3
|
9aba05ea1ea224faf4da1fb087997b508493c0e7
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
var ocuser = document.getElementById("oc-user").value;
|
var ocuser = document.getElementById("oc-user").value;
|
||||||
var ocuser = ocuser.replace (/^/,'OpenCollective Profile: ');
|
var ocuser = ocuser.replace (/^/,'OpenCollective Profile: ');
|
||||||
var description = name + "%0A%0A" + aboutme + "%0A%0A" + howfound + "%0A%0A" + ocuser;
|
var description = name + "%0A%0A" + aboutme + "%0A%0A" + howfound + "%0A%0A" + ocuser;
|
||||||
var url = baseurl.concat("&title=", email, "&description=", description);
|
|
||||||
console.log('Description:', description);
|
console.log('Description:', description);
|
||||||
|
|
||||||
fetch(url, {
|
fetch(url, {
|
||||||
|
@ -65,6 +64,7 @@
|
||||||
'authorization': 'token b8d8617bb6049c0e47b7bba5cd0931799f54609c',
|
'authorization': 'token b8d8617bb6049c0e47b7bba5cd0931799f54609c',
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
|
body: JSON.stringify({ title: "test" }),
|
||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(result => {
|
.then(result => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue