Youtargets.com API

The Youtargets API is implemented as a PHP page that accepts GET or POST requests and returns JSON or XML.

API clients must hit the URL http://app.youtargets.com/api2.php

All API requests must have a key argument indicating the user, except cmd=login.

Tasks


Methods

MethodExpected parameters

taskList

taskcategoryid (type: integer, Task category)
contactid (type: integer, Contact id)
companyid (type: integer, Company id)
duemonth (type: integer, Due month)
dueday (type: integer, Due day)
dueyear (type: integer, Due year)
done (type: boolean, Task done: 0 or 1)

taskView

id (type: integer, required: Yes, Task id)

taskCreate

name (type: string, required: Yes, Task name)
done (type: integer, Task done, default:0)
taskcategoryid (type: integer, Task category)
contactid (type: integer, Contact id)
companyid (type: integer, Company id)
dealid (type: integer, Deal id)
caseid (type: integer, Case id)
duemonth (type: integer, Due month (used only in conjunction with dueday and dueyear))
dueday (type: integer, Due day (used only in conjunction with duemoth and dueyear))
dueyear (type: integer, Due year)
dueweek (type: integer, Due week (used only in conjunction with dueyear))
duelaterthan (type: integer, Due later than a timestamp)

taskEdit

id (type: integer, required: Yes, Task Id)
name (type: string, Task name)
done (type: integer, Task done (1 or 0))

taskDelete

id (type: integer, required: Yes, Task Id)

taskCategoryList

taskCategoryView

id (type: integer, required: Yes, Task category Id)

taskCategoryCreate

name (type: string, required: Yes, Task category name)
color (type: string, Task category hex color)

taskCategoryEdit

id (type: integer, required: Yes, Task category Id)
name (type: string, Task category name)
color (type: string, Task category hex color)

taskCategoryDelete

id (type: integer, required: Yes, Task category id)

Introduction

Account

Users

Groups

Contacts

Companies

Websites

Emails

Phones

IMs

Addresses

Deals

Cases

Tags

Tasks

Notes

Custom Fields


LISTING

VIEWING

CREATING

MODIFYING

DELETING


Reference Data

API Wrapper (php)