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.

Deals


Methods

MethodExpected parameters

dealList

dealView

id (type: integer, required: Yes, Deal Id)
set_recently_viewed (type: boolean, If set to 1, deal will be added to the recently viewed list. Default: 0)

dealCreate

name (type: string, required: Yes, Deal name)
contactid (type: integer, Contact Id)
companyid (type: integer, Company Id)
dealcategoryid (type: integer, Deal category Id)
description (type: string, Deal description)
amount (type: double, Deal amount)
currency (type: string, Deal currency)
bidtype (type: string, Deal bid type, allowed values: fixed, hour, month, year)
pending (type: boolean, Deal pending, default: 1)
won (type: boolean, Deal won, default: 0)
lost (type: boolean, Deal lost, default: 0)

dealEdit

id (type: integer, required: Yes, Deal Id)
name (type: string, Deal name)
contactid (type: integer, Contact Id)
companyid (type: integer, Company Id)
dealcategoryid (type: integer, Deal category Id)
description (type: string, Deal description)
amount (type: double, Deal amount)
currency (type: string, Deal currency)
bidtype (type: string, Deal bid type, allowed values: fixed, hour, month, year)
pending (type: boolean, Deal pending, default: 1)
won (type: boolean, Deal won, default: 0)
lost (type: boolean, Deal lost, default: 0)

dealDelete

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

dealCategoryList

dealCategoryView

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

dealCategoryCreate

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

dealCategoryEdit

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

dealCategoryDelete

id (type: integer, required: Yes, Deal 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)