Common Lisp Package: ODESK

README:

FUNCTION

Public

AUTH-URL (&KEY (CONNECTION *CONNECTION*) FROB)

Return authentication url to be used in browser.

AUTH/CHECK-TOKEN (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Return authenticated user associated with authorization token.

AUTH/GET-FROB (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Get authentication frob.

AUTH/GET-TOKEN (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Get authentication token.

AUTH/REVOKE-TOKEN (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Revoke given auth.

HR/GET-COMPANIES (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Return all the companies the current authorized user has access to on oDesk

HR/GET-COMPANY (&KEY (CONNECTION *CONNECTION*) PARAMETERS COMPANY)

Return details regarding a specific company

HR/GET-COMPANY-TEAMS (&KEY (CONNECTION *CONNECTION*) PARAMETERS COMPANY)

Return a list of teams within the company being referenced

HR/GET-COMPANY-USERS (&KEY (CONNECTION *CONNECTION*) PARAMETERS COMPANY)

Return a list of all users within the referenced company

HR/GET-MYSELF (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Return info about current authenticated user

HR/GET-TEAM-USERS (&KEY (CONNECTION *CONNECTION*) PARAMETERS TEAM)

This will return user details for all users in the referenced team

HR/GET-TEAMS (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

This call returns all the teams that a user has acccess to

HR/GET-USER (&KEY (CONNECTION *CONNECTION*) PARAMETERS USER)

Return info about some user

MC/GET-TRAYS (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Retrieve a list of all active trays and a message count for each.

MC/LIST-TRAY (&KEY (CONNECTION *CONNECTION*) PARAMETERS USERNAME TRAY)

Retrive tray contents.

PROFILES/GET-JOBS (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Search for jobs.

PROFILES/GET-PROVIDER (&KEY (CONNECTION *CONNECTION*) PARAMETERS PROVIDER)

Return detailed profile information about provider

PROFILES/GET-PROVIDER-BRIEF (&KEY (CONNECTION *CONNECTION*) PARAMETERS PROVIDER)

Return brief profile information about provider

PROFILES/GET-PROVIDERS (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Search for workers.

SHORTURL/GET-EXPAND (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Return expanded url.

SHORTURL/GET-SHORTEN (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Return shortened url.

TEAM/GET-TEAMROOM (&KEY (CONNECTION *CONNECTION*) PARAMETERS TEAM)

Get all teamrooms accessible to the user.

TEAM/GET-TEAMROOMS (&KEY (CONNECTION *CONNECTION*) PARAMETERS)

Get all teamrooms accessible to the user.

TEAM/GET-WORKDIARY (&KEY (CONNECTION *CONNECTION*) PARAMETERS COMPANY USERNAME DATE)

Retrieve all snapshots from a single user account within a single day

TIMEREPORTS/GET-AGENCY (&KEY (CONNECTION *CONNECTION*) PARAMETERS COMPANY AGENCY)

Generate time report for a specific agency

TIMEREPORTS/GET-COMPANY (&KEY (CONNECTION *CONNECTION*) PARAMETERS COMPANY)

Generate company wide time reports

TIMEREPORTS/GET-PROVIDER (&KEY (CONNECTION *CONNECTION*) PARAMETERS PROVIDER)

Generate time report for a specific provider

TIMEREPORTS/GET-TEAM (&KEY (CONNECTION *CONNECTION*) PARAMETERS COMPANY TEAM)

Generate time report for a specific team

URL-ENCODE (STRING EXTERNAL-FORMAT)

Returns a URL-encoded version of the string STRING using the external format EXTERNAL-FORMAT.

Private

Undocumented

FORMAT-URL (URL &KEY FROM-SUBS TO-SUBS)

GET-PAGE (URL &KEY (METHOD GET) PARAMETERS)

MACRO

Public

Undocumented

CONNECT-ODESK ((&KEY (FORMAT JSON) PUBLIC-KEY SECRET-KEY API-TOKEN))

WITH-ODESK ((&KEY (CONNECTION '*CONNECTION*) (FORMAT JSON) PUBLIC-KEY SECRET-KEY API-TOKEN) &BODY BODY)

Private

Undocumented

DEF-GDS (REQUEST (&KEY URL (METHOD GET) VERSION SUB-URL) DOCSTRING)

DEF-REQ (REQUEST (&KEY URL (METHOD GET) VERSION SUB-URL) DOCSTRING)

GENERIC-FUNCTION

Private

BUILD-AUTH-URL (API &KEY FROB)

Return authentication url to be used in browser..

ENCODE-URL (API &KEY PARAMETERS)

Encode url parameters.

PARSE-PAGE (API PAGE)

Parse fetched page.

SIGN-URL (API &KEY PARAMETERS)

Sign url parameters.

URL-READ (API URL &KEY PARAMETERS METHOD (METHOD GET) (REQUEST-TYPE API))

Return parsed object.

SLOT-ACCESSOR

Private

API-TOKEN (OBJECT)

Api token

SETFAPI-TOKEN (NEW-VALUE OBJECT)

Api token

API-URL (OBJECT)

Base url for API requests.

SETFAPI-URL (NEW-VALUE OBJECT)

Base url for API requests.

API-VERSION (OBJECT)

Major version of the API.

SETFAPI-VERSION (NEW-VALUE OBJECT)

Major version of the API.

DATA-FORMAT (OBJECT)

Data Format

SETFDATA-FORMAT (NEW-VALUE OBJECT)

Data Format

GDS-URL (OBJECT)

Base GDS url for API requests.

SETFGDS-URL (NEW-VALUE OBJECT)

Base GDS url for API requests.

PUBLIC-KEY (OBJECT)

Public key

SETFPUBLIC-KEY (NEW-VALUE OBJECT)

Public key

SECRET-KEY (OBJECT)

Secret key

SETFSECRET-KEY (NEW-VALUE OBJECT)

Secret key

VARIABLE

Public

Undocumented

*CONNECTION*

Private

*ODESK-VERSION-STRING*

cl-odesk version number as a string.

Undocumented

*API-AUTH-URL*

*API-BASE-URL*

*GDS-BASE-URL*

*LIBRARY-NAME*

*USER-AGENT*

CLASS

Public

Undocumented

API