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 ParametersDescriptionExample
username *   Username of the admin.username1
password *   Password of the corresponding usernamepassword

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 ParametersDescription         SyntaxExample
from_date *   From which date you want to start the reportAccepted Date Format mm/dd/yyyy01/03/2015
to_date *   To which date you want to run the reportAccepted Date Format

mm/dd/yyyy

10/25/2015
key *Unique string given when admin loginAPI key from login APIAZG3B3WEJ0EZWGL5
employees

 

Number of the corresponding employeeEmployee 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 formatAccepted 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 optionAccepted 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 ParametersDescriptionExample
emp_id    ID of the Employee2

 

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”: [email protected]

},

{

“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”: [email protected]

}

]

 

 

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”: [email protected]

}

]

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 ParametersDescriptionExample
emp_id *   ID of the Employee2

* 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 ParametersDescriptionExample
emp_id *   ID of the Employee2
first_name *   First Name of the EmployeeJohn
last_nameLast Name of the EmployeeDoe
phone_numPhone number of the Employee8866541559
codeCountry code of the phone number96
manager  Whether employee is manager or non-manager1 or 0
email *Email of the Employee[email protected]
workgroup *Work group of the EmployeeConstruction
payrollitemPayroll of EmployeeHourly
otpayrollitemOvertime payroll of EmployeeOTHourly

* 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 protected]&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 protected]

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 ParametersDescriptionExample
emp_id *   ID of the Employee3
NewempidNew ID of the Employee11
first_name    First Name of the EmployeeAdam
last_nameLast Name of the EmployeeDaly
phone_numPhone number of the Employee5545412416
codeCountry code of the phone number96
managerWhether employee is manager or non-manager1 or 0
email *Email of the Employee[email protected]
workgroup *Work group of the EmployeePainters
payrollitemPayroll of EmployeeHourly
otpayrollitemOvertime payroll of EmployeeHourly1.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 ParametersDescriptionExample
jid    ID of the Job2

 

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 ParametersDescriptionExample
jid *   ID of the Job2

* 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 ParametersDescriptionExample
jid *   ID of the Job2
jname  Name of the JobMain St. Remodeling
phone_numPhone number of the Job9655412471
codeCountry code of the phone number96
street Street of the Job13th Ave
cityCity of the JobBoston
stateState of the JobMA
latitudeLatitude point of the Job12.200233
longitudeLongitude point of the Job70.12121
service_itemServiceelectrical
billableBillableYES or NO
radiusGeo fence radius of the Job321
time_zoneTime zoneALASKA

* required fields

 

 

 

 

 

States codes and their Names:

State

Code

State NameState CodeState NameState Code    State Name
ALALABAMAMI MICHIGANUT UTAH
AKALASK,MN MINNESOTAVT VERMONT
ASAMMARIEAN SAMOAMS MISSISSIPPIVI VIRGIN ISLANDS
AZARIZONAMO MISSOURIVA VIRGINIA
ARARKANSASMT MONTANAWA WASHINGTON
CACALIFORNIANE NEBRASKAWV WEST VIRGINIA
COCOLORADONV NEVADAWI WISCONSIN
CTCONNECTICUTNH NEW HAMPSHIREWY WYOMING
DEDELAWARENJ NEW JERSEYAE ARMED FORCES AFRICA \

CANADA \ EUROPE \

MIDDLE EAST

DCDISTRICT OF COLUMBIANM NEW MEXICOAA ARMED FORCES AMMARIEA

(EXCEPT CANADA)

FMFEDERATED STATES OF MICRONESIANY NEW YORKAPARMED

FORCES

PACIFIC

FLFLORIDANC NORTH CAROLINABC  British Columbia
GAGEORGIAND NORTH DAKOTAON Ontario
GU GUAM GUMP NORTHERN MARIANA ISLANDSNL  Newfoundland and

Labrador

HI HAWAIIOH OHIONS Nova Scotia
ID IDAHOOK OKLAHOMAPE  Prince Edward Island
IL ILLINOISOR OREGONNB  New Brunswick
IN INDIANAPW PALAUQC  Quebec
IA IOWAPA PENNSYLVANIAMB Manitoba
KS KANSASPR PUERTO RICOSK  Saskatchewan
KY KENTUCKYRI RHODE ISLANDAB  Alberta
LA LOUISIANASC SOUTH CAROLINANT  Northwest Territories
ME MAINESD SOUTH DAKOTANU  Nunavut
MH MARSHALL ISLANDSTN TENNESSEEYT  Yukon Territory
MD MARYLANDMA MASSACHUSETTSPR Puerto Rico
TXTEXAS  

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 ParametersDescriptionExample
jid *   ID of the Job2
newjidNew ID of the Job11
jname  Name of the JobLincoln School Roof
phone_numPhone number of the Job9655412471
codeCountry code of the phone number96
street Street of the Job13th Ave
cityCity of the JobBoston
stateState of the JobMA
latitudeLatitude point of the Job12.200233
longitudeLongitude point of the Job70.12121
service_itemServiceClass
billableBillableYES or NO
radiusGeo fence radius of the Job321
time_zoneTime zoneALASKA

* 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 ParametersDescriptionExample
tid    ID of the Task2

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 ParametersDescriptionExample
tid *   ID of the Task2

* 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 ParametersDescriptionExample
tid *   ID of the Task2
tname *   Name of the Taskroofing
service_itemName of service itemroofing
className of Classlabor 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 ParametersDescriptionExample
tid*   ID of the Task2
tname Name of the Tasksecurity guard
newtidNew ID of the task6
className of Classsecurity
service_itemName of service itemservicetest

* 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 ParametersDescriptionExample
gid    ID of the Workgroup2

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 ParametersDescriptionExample
gid *   ID of the Workgroup2

* 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 ParametersDescriptionExample
gid *   ID of the Workgroup2
gname *   Name of the WorkgroupPlumbers

* 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 ParametersDescriptionExample
gid *   ID of the Workgroup2
gname *   Name of the WorkgroupElectricians
new_gidNew ID of the workgroup6

* 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”

}