Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Find the list of all projects that are in progress

    Code Block
    languagejava
    api.do?function=query&table=db_project&status_id=1&data-format=json&token=a1dc42fb-d420-10feb-aaks9-89f5c0e8sk3c&data-format=xml
  2. Fetch details of task with id 100

    Code Block
    languagejava
    api.do?function=query&table=db_task&id=100&token=a1dc42fb-d420-10feb-aaks9-89f5c0e8sk3c&data-format=json 

    Not specifying the data-format, defaults the result to XML format.
     

  3. Fetch tasks assigned to user with id 200

    Code Block
    languagejava
    api.do?function=query&table=db_task&join-with=db_assignment.task_id&db_assignment.user_id=200&data-format=json&token=a1dc42fb-d420-10feb-aaks9-89f5c0e8sk3c
  4. Execute a query using SQL (This example can only be used by On-Premise customers) 

    Code Block
    languagejava
    api.do?function=query&table=generic&sql=select+id+from+db_project+where+fixed_price+>+100000