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.

MODIFYING


Methods

MethodExpected parameters

accountEdit

firstname (type: string, First name)
lastname (type: string, Last name)
email (type: string, Email)
username (type: string, Username)
company (type: string, Company)
language (type: string, Language, choose from: da, de, en, es, fr, hr, it, nl, no, pl, pt-br, ro, ru, sv, jp, be)
theme (type: string, Color theme, choose from: white, grey, blue, green, pink)
timezone (type: string, Timezone, default: US/Central)
dateformat (type: string, Date format, us or eu, default: us)
currency (type: string, Currency, default: USD)

userEdit

groupEdit

id (type: integer, required: Yes, Group Id)
name (type: string, Group name)

contactEdit

id (type: string, required: Yes, Contact Id)
firstname (type: string, The first name of the contact)
lastname (type: string, The last name of the contact)
title (type: string, The title of the contact)
companyid (type: integer, Company Id)
linkedin (type: string, Linkedin profile URL)
twitter (type: string, Twitter username)
facebook (type: string, Facebook profile URL)
gplus (type: string, Google Plus profile URL)
notes (type: string, Contact notes)

contactFilterEdit

companyEdit

id (type: integer, required: Yes, Company Id)
name (type: string, Company name)
twitter (type: string, Company twitter account)
notes (type: string, Company notes)

websiteEdit

emailEdit

id (type: integer, required: Yes, Email Id)
address (type: string, Email Address)
type (type: string, Email type, allowed types: work, home, other)

phoneEdit

id (type: integer, required: Yes, Phone Id)
number (type: string, Phone number)
type (type: string, Phone type, allowed types: work, mobile, fax, pager, home, skype, other)

imEdit

id (type: integer, required: Yes, IM account Id)
account (type: string, IM acount)
network (type: string, IM network, allowed values: aim, msn, icq, jabber, yahoo, skype, gtalk, other)
type (type: string, IM account type, allowed values: work, personal, other)

addressEdit

id (type: integer, required: Yes, Address Id)
street (type: string, Addres Street)
city (type: string, Addres City)
state (type: string, Addres State)
zip (type: string, Addres Zip code)
countryid (type: integer, Country Id (internal))
countrycode (type: string, 2 char Country code)
countryname (type: string, Full Country name)
type (type: string, Address type, allowed values: work, home, other)

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)

dealCategoryEdit

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

caseEdit

id (type: string, required: Yes, Case Id)
name (type: string, Case name)
note (type: string, Case background notes)
open (type: boolean, Case open, default: 1)

caseRegenerateEmail

tagEdit

taskEdit

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

taskCategoryEdit

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

noteEdit

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)