new feature: add task(daily,hatit,todo,reward)
This commit is contained in:
parent
73f4cbd16b
commit
0416a4de8c
10 changed files with 130 additions and 129 deletions
|
|
@ -57,7 +57,7 @@ export async function costReward(username: string, credentials: string, taskID:
|
|||
|
||||
|
||||
export async function addTask(username: string, credentials: string, title: string, type: string) {
|
||||
const url = "https://habitica.com/api/v4/tasks/user".concat(title)
|
||||
const url = "https://habitica.com/api/v4/tasks/user"
|
||||
const response = fetch(url, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue