Tally Platform API
user-task
Find user tasks
1 min
code examples curl location 'https //api b preview\ loyaltyservices io/api/v3/user tasks?includeclosed=boolean' \\ \ header 'accept application/json' \\ \ header 'content type application/json'require "uri" require "json" require "net/http" url = uri("https //api b preview\ loyaltyservices io/api/v3/user tasks?includeclosed=boolean") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api b preview\ loyaltyservices io/api/v3/user tasks?includeclosed=boolean" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) okhttpclient client = new okhttpclient() newbuilder() build(); mediatype mediatype = mediatype parse("application/json"); requestbody body = requestbody create(mediatype, ""); request request = new request builder() url("https //api b preview\ loyaltyservices io/api/v3/user tasks?includeclosed=boolean") method("get", body) addheader("accept", "application/json") addheader("content type", "application/json") build(); response response = client newcall(request) execute(); responses // success \[ { "usertaskid" "", "title" "", "status" "", "followupflag" false, "followupdate" "", "assignedto" "", "comments" \[ { "createdate" "", "createdby" "", "comment" "" } ] } ]// bad request { "usertaskid" "", "title" "", "status" "", "followupflag" false, "followupdate" "", "assignedto" "", "comments" \[ { "createdate" "", "createdby" "", "comment" "" } ] }// unauthorized // forbidden // internal server error