Time Tracking Software API ver. 2

Timesheet Mobile’s Time Tracking Software API is a REST based set of endpoints designed to be easily accessed and used to integrate third party applications to exchange employee, customer, task, and timesheet data.

 

Login_check API Parameters- Authenticates admin username and password and returns API_KEY.  KEY is to be used in all subsequent API calls.

 

Request Parameters Description Example
username *   Username of the admin. username1
password *   Password of the corresponding username password

Login_check examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=TBA&password=TBA1

Response:

{

“status”: “success”,

“message”: “success”,

“API_KEY”: “fZjT32U5dnxkAwG3”

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=TBA&password=

Response:

{

“status”: “fail”,

“message”: “’password’ parameter is missing”,

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=&password=TBA1

Response:

{

“status”: “fail”,

“message”: “’username’ parameter is missing”,

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=TBA&password=TBA1

Response:

{

“status”: “fail”,

“message”: ” Your not admin”,

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/login_check.php?username=TBA&password=TBA1

Response:

{

“status”: “fail”,

“message”: ” Invalid Username or Password”,

}

Timesheet Report API Parameters

 

Request Parameters Description          Syntax Example
from_date *   From which date you want to start the report Accepted Date Format mm/dd/yyyy 01/03/2015
to_date *   To which date you want to run the report Accepted Date Format

mm/dd/yyyy

10/25/2015
key * Unique string given when admin login API key from login API AZG3B3WEJ0EZWGL5
employees

 

Number of the corresponding employee Employee Number

If no employee number given report for all employees will be generated

 

Default: All

32
 jobs

 

Number of the corresponding

job

Job Number if report required for single job

 

Default: All

21
rounding_time Accepted values
off
15
30Default : Set by Admin
15
time_format In what way you want display the time format Accepted values:

hh:mm

decimal

 

Default: Set by Admin

hh:mm
report_type Report type is for to split the records based on the report_type option Accepted values:

actual

day_started

day_ended

 

Default: Set by Admin

Actual

dayended

* Required Fields and remaining fields are optional and case insensitive.

Note:  For employees and jobs parameters if you enter valid employee number it gives corresponding data or if you enter “all” or any other thing then it gives all employees data

Timesheet Report Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/27/2015&to_date=10/28/2015

Response:

{

    “status”: “success”,

    “message”: “success”,

    “log_count”: 2,

    “logs”: [

        {

            “employee_number”: “24”,

            “employee_name”: “Marie Doe “,

            “date_time_in”: “10/27/2015 06:15:03”,

            “date_time_out”: “10/27/2015 09:15:03”,

            “workgroup_number”: “339”,

            “workgroup_name”: “Electricians”,

            “job_number”: “1”,

            “job_name”: “Dentist Office Renovation”,

            “service_item”: “electrician”,

            “task_no”: “3”,

            “task_name”: “Time Tracking Software Testing”,

            “location_acceptance_in”: “At Site”,

            “location_acceptance_out”: “At Site”,

            “login_notes”: “Job costing estimate for new east wing.”,

            “logout_notes”: “Going to employee meeting about job costing.”,

            “login_mileage”: “7”,

            “logout_mileage”: “88”,

            “payroll_item”: “Hourly”,

            “duration”: “03 : 00”

        },

        {

            “employee_number”: “24”,

            “employee_name”: “Marie Doe “,

            “date_time_in”: “01/01/1970 05:30:00”,

            “date_time_out”: “10/27/2015 09:15:03”,

            “workgroup_number”: “339”,

            “workgroup_name”: “Plumbing”,

            “job_number”: “1”,

            “job_name”: “Commercial Roofing”,

            “service_item”: “2015-06-23”,

            “task_no”: “3”,

            “task_name”: “Roofing”,

            “location_acceptance_in”: “At Site”,

            “location_acceptance_out”: At Site”,

            “login_notes”: “Tracking Job costs”,

            “logout_notes”: “Meeting at customer location”,

            “login_mileage”: null,

            “logout_mileage”: “88”,

            “payroll_item”: “Hourly”,

            “duration”: “05 : 25”

        }

    ]

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=09/28/2015&to_date=10/28/2015&employees=1&jobs=52

Response:

{

    “status”: “success”,

    “message”: “success”,

    “log_count”: 1,

    “logs”: [

        {

            “employee_number”: “1”,

            “employee_name”: “Marie Doe”,

            “date_time_in”: “10/03/2015 12:00:00”,

            “date_time_out”: “10/03/2015 01:48:56”,

            “workgroup_number”: “3”,

            “workgroup_name”: “Painters “,

            “job_number”: “41”,

            “job_name”: “Ipswich Bay Yacht Sales”,

            “service_item”: “Painting Remodelling”,

            “task_no”: “3”,

            “task_name”: “Painting”,

            “location_acceptance_in”: “12781156 m FROM SITE: APP”,

            “location_acceptance_out”: null,

            “login_notes”: “Ran out for more paint”,

            “logout_notes”: “Training contractors on time clock app.”,

            “login_mileage”: “0”,

            “logout_mileage”: “0”,

            “payroll_item”: “Hourly Regular”,

            “duration”: “01 : 49”

        }

    ]

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/23/2015&to_date=10/28/2015&employees=1&jobs=100

Response:

{

    “status”: “success”,

    “message”: “success”,

    “log_count”: 0,

    “logs”: []

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/23/2015

Response:

{

    “status”: “fail”,

    “message”: “‘to_date’ parameter is missing”

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/30/2015&to_date=10/28/2015

Response:

{

    “Status”: “fail”,

    “Message”: “to_date must greater than from_date”

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=&to_date=10/28/2015

Response:

{

    “Status”: “fail”,

    “Message”: “from_date parameter is missing”

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?from_date=10/23/2015&to_date=10/28/2015

Response:

{

    “Status”: “fail”,

    “Message”: “’ key’ is missing”

}

 

 Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee_report.php?key=NZG3B3WEJ0EZWGL5&from_date=10/23/2015&to_date=10/28/2015&key=aba2as3rgd343t4eg3

Response:

{

    “Status”: “fail”,

    “Message”: “Invalid API key”

}

 

Employee API Parameters:

Action = view

Request Parameters Description Example
emp_id    ID of the Employee 2

 

View Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=view&key=cFwyBfxtDZmoIb0C

Response:

[

{

“employee_number”: “1”,

“employee_first_name”: “Marie”,

“employee_last_name”: “Doe”,

“employee_phone”: “6175551234”,

“location_option”: “Log out 2015-11-06 10:30:01”,

“payroll_item”: “Hourly”,

“ot_payroll_item”: “1.5 Hourly”,

“workgroup”: “Management”,

“manager”: “Manager”,

“email”: “MarielDoe@gmail.com”

},

{

“employee_number”: “2”,

“employee_first_name”: “John”,

“employee_last_name”: “Smith”,

“employee_phone”: “6715559999”,

“location_option”: “Log out 2015-11-06 10:30:42”,

“payroll_item”: “Plumber”,

“ot_payroll_item”: “1.5 Plumber”,

“workgroup”: “Plumbing Contractors”,

“manager”: “Manager”,

“email”: “John@timesheetmobile.com”

}

]

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=view&key=cFwyBfxtDZmoIb0C&emp_id=2

Response:

[

{

“employee_number”: “2”,

“employee_first_name”: “John”,

“employee_last_name”: “Smith”,

“employee_phone”: “6175557878”,

“location_option”: “Log out 2015-11-06 10:30:42”,

“payroll_item”: “Security”,

“ot_payroll_item”: “1.5 Security”,

“workgroup”: “Security Officers”,

“manager”: “Manager”,

“email”: “John@timesheetmobile.com”

}

]

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=view&key=cFwyBfxtDZmoIb0C&emp_id=fffd

Response:

{

    “status”: “fail”,

    “message”: “’emp_id’ should be number”

}

Action = delete

Request Parameters Description Example
emp_id *   ID of the Employee 2

* required fields

Delete Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=delete&key=cFwyBfxtDZmoIb0C&emp_id=2

Response:

{

    “status”: “success”,

    “message”: “successfully deleted”

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=delete&key=cFwyBfxtDZmoIb0C&emp_id=122

Response:

{

    “status”: “fail”,

    “message”: “No record with that employee number 122”

}

Action = insert

Request Parameters Description Example
emp_id *   ID of the Employee 2
first_name *   First Name of the Employee John
last_name Last Name of the Employee Doe
phone_num Phone number of the Employee 8866541559
code Country code of the phone number 96
manager  Whether employee is manager or non-manager 1 or 0
email * Email of the Employee Fransis143@gmail.com
workgroup * Work group of the Employee Construction
payrollitem Payroll of Employee Hourly
otpayrollitem Overtime payroll of Employee OTHourly

* required fields      *Conditional required fields when manager value is 1

Insert Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=2&first_name=adam&last_name=a&phone_num=3214569858&manager=1&email=adam121@gmal.com&code=21&workgroup=testing&payrollitem=daily&otpayrollitem=hourly

Response:

{

    “status”: “success”,

    “message”: “successfully inserted”

}

 

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=10

Response:

{

    “status”: “fail”,

    “message”: “ ‘first_name’ parameter is missing”

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=122&manager=1&first_name=vj

Response:

{

    “status”: “fail”,

    “message”: “ ‘workgroup’ or ’email’ parameter is missing”

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=122&manager=1&first_name=vj&email=asm

Response:

{

    “status”: “fail”,

    “message”: “ Invalid ’email’ format “

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=122&manager=1&first_name=vj&email=asm@yahoo.com

Response:

{

    “status”: “fail”,

    “message”: “ ‘workgroup’ or ’email’ parameter is missing”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=insert&key=cFwyBfxtDZmoIb0CC&emp_id=bn&manager=1

Response:

{

    “status”: “fail”,

    “message”: “ ’emp_id’ should be number”

}

 

 

 

 

Action = update

Request Parameters Description Example
emp_id *   ID of the Employee 3
Newempid New ID of the Employee 11
first_name    First Name of the Employee Adam
last_name Last Name of the Employee Daly
phone_num Phone number of the Employee 5545412416
code Country code of the phone number 96
manager Whether employee is manager or non-manager 1 or 0
email * Email of the Employee adam@gmail.com
workgroup * Work group of the Employee Painters
payrollitem Payroll of Employee Hourly
otpayrollitem Overtime payroll of Employee Hourly1.5

* required fields               *Conditional required fields when manager value is 1

Update Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=21&last_name=jhon&phone_num=3214569858&manager=0&&workgroup=testing&payrollitem=daily&otpayrollitem=hourly

Response:

{

    “status”: “success”,

    “message”: “successfully updated”

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=21&manager=0&&workgroup=testing&payrollitem=daily&otpayrollitem=hourly &newempid=52

Response:

{

    “status”: “success”,

    “message”: “successfully updated”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=21&manager=0&&workgroup=testing&payrollitem=daily&otpayrollitem=hourly &newempid=2

Response:

{

    “status”: ” fail “,

    “message”: “ ‘newempid’ already exists “

}

 

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=bn&manager=1

Response:

{

    “status”: “fail”,

    “message”: “ ’emp_id’ should be number”

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?action=update&key=cFwyBfxtDZmoIb0CC&emp_id=121&manager=1

Response:

{

    “status”: “fail”,

    “message”: “no employee with 121 ’emp_id'”

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/employee.php?key=cFwyBfxtDZmoIb0CC&emp_id=121&manager=1

Response:

{

    “status”: “fail”,

    “message”: “ ‘action’ parameter is missing”

}

Customer Job API Parameters:

Action = view

Request Parameters Description Example
jid    ID of the Job 2

 

View Examples:

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=view&key=cFwyBfxtDZmoIb0C

Response:

[

{

“job_number”: “1”,

“job_name”: “Brooks Lawn Care.”,

“job_phone”: “6175551545”,

“service_item”: “landscaping”,

“billable”: “NO”,

“street”: “123 Elm”,

“city”: “boston”,

“zip”: “01005”,

“state”: “MA”,

“latitude”: “36.19005320”,

“longitude”: “-61.62479920”,

“GEO_Fence”: “100m”

},

{

“job_number”: “2”,

“job_name”: “D&D Snowplowing”,

“job_phone”: “+3459876534523”,

“service_item”: “snow removal”,

“billable”: “YES”,

“street”: “15 Oak St.”,

“city”: “Newton”,

“zip”: “01587”,

“state”: “MA”,

“latitude”: “36.00070000”,

“longitude”: “-62.03400000”,

“GEO_Fence”: “200m”

}

]

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=view&key=cFwyBfxtDZmoIb0C&jid=1

Response:

[

{

“job_number”: “1”,

“job_name”: “Jones St. Addition”,

“job_phone”: “6175558745”,

“service_item”: “carpentry”,

“billable”: “NO”,

“street”: “123 Elm”,

“city”: “boston”,

“zip”: “01221”,

“state”: “MA”,

“latitude”: “40.19095320”,

“longitude”: “-76.62479920”,

“GEO_Fence”: “125m”

}

]

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=view&key=cFwyBfxtDZmoIb0C&jid=fffd

Response:

{

    “status”: “fail”,

    “message”: “‘jid’ should be number”

}

Action = delete

Request Parameters Description Example
jid *   ID of the Job 2

* required fields

Delete Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=delete&key=cFwyBfxtDZmoIb0C&jid=2

Response:

{

    “status”: “success”,

    “message”: “successfully deleted”

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=delete&key=cFwyBfxtDZmoIb0C&jid=122

Response:

{

    “status”: “fail”,

    “message”: “No record with that job number 122”

}

Action = insert

Request Parameters Description Example
jid *   ID of the Job 2
jname  Name of the Job Main St. Remodeling
phone_num Phone number of the Job 9655412471
code Country code of the phone number 96
street Street of the Job 13th Ave
city City of the Job Boston
state State of the Job MA
latitude Latitude point of the Job 12.200233
longitude Longitude point of the Job 70.12121
service_item Service electrical
billable Billable YES or NO
radius Geo fence radius of the Job 321
time_zone Time zone ALASKA

* required fields

 

 

 

 

 

States codes and their Names:

State

Code

State Name State Code State Name State Code     State Name
AL ALABAMA MI MICHIGAN UT UTAH
AK ALASK, MN MINNESOTA VT VERMONT
AS AMMARIEAN SAMOA MS MISSISSIPPI VI VIRGIN ISLANDS
AZ ARIZONA MO MISSOURI VA VIRGINIA
AR ARKANSAS MT MONTANA WA WASHINGTON
CA CALIFORNIA NE NEBRASKA WV WEST VIRGINIA
CO COLORADO NV NEVADA WI WISCONSIN
CT CONNECTICUT NH NEW HAMPSHIRE WY WYOMING
DE DELAWARE NJ NEW JERSEY AE ARMED FORCES AFRICA \

CANADA \ EUROPE \

MIDDLE EAST

DC DISTRICT OF COLUMBIA NM NEW MEXICO AA ARMED FORCES AMMARIEA

(EXCEPT CANADA)

FM FEDERATED STATES OF MICRONESIA NY NEW YORK AP ARMED

FORCES

PACIFIC

FL FLORIDA NC NORTH CAROLINA BC  British Columbia
GA GEORGIA ND NORTH DAKOTA ON Ontario
GU GUAM GU MP NORTHERN MARIANA ISLANDS NL  Newfoundland and

Labrador

HI HAWAII OH OHIO NS Nova Scotia
ID IDAHO OK OKLAHOMA PE  Prince Edward Island
IL ILLINOIS OR OREGON NB  New Brunswick
IN INDIANA PW PALAU QC  Quebec
IA IOWA PA PENNSYLVANIA MB Manitoba
KS KANSAS PR PUERTO RICO SK  Saskatchewan
KY KENTUCKY RI RHODE ISLAND AB  Alberta
LA LOUISIANA SC SOUTH CAROLINA NT  Northwest Territories
ME MAINE SD SOUTH DAKOTA NU  Nunavut
MH MARSHALL ISLANDS TN TENNESSEE YT  Yukon Territory
MD MARYLAND MA MASSACHUSETTS PR Puerto Rico
TX TEXAS    

Insert Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=22.22232&longitude=121.333&billable=yes

Response:

{

    “status”: “success”,

    “message”: “successfully inserted”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&city=boston&street=13thave&billable=no

Response:

{

    “status”: “success”,

    “message”: “successfully inserted”

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=22.22232&longitude=121.333&billable=yes&radius=10

Response:

{

    “status”: “fail”,

    “message”: “ ‘radius’ should be numMarie and range between 25 to 10000? “

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=2122.22232&longitude=121.333&billable=yes&radius=500

Response:

{

    “status”: “fail”,

    “message”: “ invalid ‘latitude’ point”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job& latitude=21.22232&longitude=1921.333&billable=yes&radius=500

Response:

{

    “status”: “fail”,

    “message”: “ invalid ‘longitude’ point”

}

 

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job& latitude=21.22232&longitude=asdsd

Response:

{

    “status”: “fail”,

    “message”: “ ‘longitude’ point should be number”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=insert&key=cFwyBfxtDZmoIb0CC&jid=bn&manager=1

Response:

{

    “status”: “fail”,

    “message”: “ ‘jid’ should be number”

}

Action = update

Request Parameters Description Example
jid *   ID of the Job 2
newjid New ID of the Job 11
jname  Name of the Job Lincoln School Roof
phone_num Phone number of the Job 9655412471
code Country code of the phone number 96
street Street of the Job 13th Ave
city City of the Job Boston
state State of the Job MA
latitude Latitude point of the Job 12.200233
longitude Longitude point of the Job 70.12121
service_item Service Class
billable Billable YES or NO
radius Geo fence radius of the Job 321
time_zone Time zone ALASKA

* required fields

Update Examples:

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=22.22232&longitude=121.333&billable=no

Response:

{

    “status”: “success”,

    “message”: “successfully updated”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=22.22232&longitude=121.333&billable=yes&radius=10

Response:

{

    “status”: “fail”,

    “message”: “ ‘radius’ should be numMarie and range between 25 to 10000? “

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job&phone_num=2233665511&latitude=2122.22232&longitude=121.333&billable=yes&radius=500

Response:

{

    “status”: “fail”,

    “message”: “ invalid ‘latitude’ point”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job& latitude=21.22232&longitude=1921.333&billable=yes&radius=500

Response:

{

    “status”: “fail”,

    “message”: “ invalid ‘longitude’ point”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=4&jname=job& latitude=21.22232&longitude=asdsd

Response:

{

    “status”: “fail”,

    “message”: “ ‘longitude’ point should be number”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZmoIb0CC&jid=bn&manager=1

Response:

{

    “status”: “fail”,

    “message”: “ ‘jid’ should be number”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?key=cFwyBfxtDZmoIb0CC&jid=bn&manager=1

Response:

{

    “status”: “fail”,

    “message”: “ ‘action’ parameter is missing”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&jid=32&manager=1

Response:

{

    “status”: “fail”,

    “message”: “ ‘key’ parameter is missing”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/job.php?action=update&key=cFwyBfxtDZIb0CC&jid=1&manager=1

Response:

{

    “status”: “fail”,

    “message”: “ Invalid API Key”

}

 

 

 

 

 

 

 

 

Task API Parameters:

Action = view

Request Parameters Description Example
tid    ID of the Task 2

View Examples:

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=view&key=cFwyBfxtDZmoIb0C

Response:

[

{

“task_number”: “1”,

“task_name”: “Painting”,

“service_item”: “labor hours”,

“class”: “Service”

},

{

“task_number”: “2”,

“task_name”: “Roofing”,

“service_item”: “contractor”,

“class”: “Contract”

}

]

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=view&key=cFwyBfxtDZmoIb0C&tid=2

Response:

[

       {

        “task_number”: “2”,

        “task_name”: “Testing”,

        “service_item”: “Validation”,

        “class”: “Inheritance”

    }

]

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=view&key=cFwyBfxtDZmoIb0C&tid=fffd

Response:

{

    “status”: “fail”,

    “message”: “‘tid’ should be number”

}

 

Action = delete

 

Request Parameters Description Example
tid *   ID of the Task 2

* required fields

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=delete&key=cFwyBfxtDZmoIb0C&tid=2

Response:

{

    “status”: “success”,

    “message”: “successfully deleted”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=delete&key=cFwyBfxtDZmoIb0C&tid=122

Response:

{

    “status”: “fail”,

    “message”: “No record with that task number 122”

}

Action = insert

Request Parameters Description Example
tid *   ID of the Task 2
tname *   Name of the Task roofing
service_item Name of service item roofing
class Name of Class labor contract

* required fields

Insert Examples:

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tid=10&tname=development&service_item=Service1& class=Class1

Response:

{

    “status”: “success”,

    “message”: “successfully inserted”

}

 

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=insert&key=cFwyBfxtDZmoIb0CC&tid=10

Response:

{

    “status”: “fail”,

    “message”: “ ‘tname’ parameter is missing”

}

Action = update

Request Parameters Description Example
tid*   ID of the Task 2
tname Name of the Task security guard
newtid New ID of the task 6
class Name of Class security
service_item Name of service item servicetest

* required fields

Update Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=developmen&class=newclass

Response:

{

    “status”: “success”,

    “message”: “successfully updated”

}

 

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=warn&new_tid=21

Response:

{

    “status”: “success”,

    “message”: “successfully updated”

}

 

 

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=5&tname=warn

Response:

{

    “status”: “fail”,

    “message”: “‘task’ name already exists”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cFwyBfxtDZmoIb0CC&tid=100&tname=warn

Response:

{

    “status”: “fail”,

    “message”: “no task with 100 ‘tid'”

}

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?key=cFwyBfxtDZmoIb0CC&tid=100&tname=warn

Response:

{

    “status”: “fail”,

   “message”: “ ‘action’ parameter is missing”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update&key=cBfxtDZmoIb0CC&tid=100&tname=warn

Response:

{

    “status”: “fail”,

    “message”: “ Invalid API Key”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/task.php?action=update &tid=100&tname=warn

Response:

{

    “status”: “fail”,

    “message”: “ ‘key’ parameter is missing”

}

 

 

Workgroup API Parameters:

Action = view

Request Parameters Description Example
gid    ID of the Workgroup 2

View Examples:

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?actio n=view&key=cFwyBfxtDZmoIb0C

Response:

[

    {

        “id”: “1”,

        “workgroup”: “Management”

    },

    {

        “id”: “2”,

        “workgroup”: “SS”

    },

    {

        “id”: “3”,

        “workgroup”: “match”

    },

    {

        “id”: “9”,

        “workgroup”: “My new workgroup6”

    }

]

Action = delete

Request Parameters Description Example
gid *   ID of the Workgroup 2

* required fields

Delete Examples:

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=delete&key=cFwyBfxtDZmoIb0C&gid=2

Response:

{

    “status”: “success”,

    “message”: “successfully deleted”

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=delete&key=cFwyBfxtDZmoIb0C&gid=122

Response:

{

    “status”: “success”,

    “message”: “No record with that group number 122”

}

Action = insert

Request Parameters Description Example
gid *   ID of the Workgroup 2
gname *   Name of the Workgroup Plumbers

* required fields

Insert Examples:

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=insert&key=cFwyBfxtDZmoIb0CC&gid=10&gname=dust

Response:

{

    “status”: “success”,

    “message”: “successfully inserted”

}

 

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=insert&key=cFwyBfxtDZmoIb0CC&gid=10

Response:

{

    “status”: “fail”,

    “message”: “‘gid’ already exists”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=insert&key=cFwyBfxtDZmoIb0CC&gid=hgg&gname=dust

Response:

{

    “status”: “fail”,

    “message”: “’gid’ should be number”

}

 

Action = update

Request Parameters Description Example
gid *   ID of the Workgroup 2
gname *   Name of the Workgroup Electricians
new_gid New ID of the workgroup 6

* required fields

Update Examples:

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=update&key=cFwyBfxtDZmoIb0CC&gid=5&gname=hack

Response:

{

    “status”: “success”,

    “message”: “successfully updated”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=update&key=cFwyBfxtDZmoIb0CC&gid=5&gname=warn&new_gid=21

Response:

{

    “status”: “success”,

    “message”: “successfully updated”

}

 

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=update&key=cFwyBfxtDZmoIb0CC&gid=5&gname=hack

Response:

{

    “status”: “fail”,

    “message”: “‘workgroup’ name already exists”

}

 

Time Tracking Software API Request:

https://admin.timesheetmobile.com/TBA/APIs/workgroup.php?action=update&key=cFwyBfxtDZmoIb0CC&gid=5&gname=hack

Response:

{

    “status”: “fail”,

    “message”: “‘workgroup’ name already exists”

}