new feature: add task(daily,hatit,todo,reward)

This commit is contained in:
kkzzhizhou 2021-11-25 16:49:05 +08:00
parent 73f4cbd16b
commit 0416a4de8c
10 changed files with 130 additions and 129 deletions

View file

@ -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: {