TimeSolv Knowledge Base

Knowledge Base

Search the Knowledge Base

Connect to TimeSolv with REST API

For any cloud-based system, it is imperative to have well developed APIs. These APIs can help 3rd party developers or the firms to extract important information from their TimeSolv for profitability, streamlining the processes. 

Find out more about our REST API technical documentation here.

It is important to note that the following steps shown below must be performed to integrate our APIs to your application:

Steps for Integration:

1. Simply get in touch with the TimeSolv team in order to get your developer account setup. These credentials can be used to log into the TimeSolv Dev application.

2. Open below-given URL to register App with TimeSolv:

https://apps.timesolv.com/App/RegisterApp.aspx

a. Login using Login/Password as per point 1.

b. On successful login, Register App with TimeSolv form opens.

c. Once saved, it will show:

                                               i.     ClientAPPKey

                                              ii.     SecretKey

3. To get ‘AuthCode’ and ‘AccessToken’ follow below-given steps.

a. In your application, you need to have a link somewhere in order to “Connect to TimeSolv” e.g.

https://apps.timesolv.com/App/Authorize.aspx?redirect_uri={returning url}&client_id={above given ClientAPPKey}&state={optional – any string}

b. It will take you to the Authorize page where you need to input LoginName/Password of a valid TimeSolv user.

c. Upon successful login, it will take you to “Grant Authorization” screen, with an option of ‘Yes’ or ‘No’.

d. On click of ‘Yes’ it will redirect you to the ‘redirect_uri’ appended in URL at point (a)

e. You will get the Authentication Code ‘code’ as part of redirect_uri. This ‘code’ will not expire and will be used to get AccessToken whenever required.

f. To get AccessToken, POST the following as url-encoded in body (all mandatory):

client_id={client_id}&client_secret={client_secret}&grant_type={grant_type}&code={code}&redirect_uri={redirect_uri}

https://apps.timesolv.com/Services/rest/oAuth2V1/Token

Reply will be a JSON as given below

{

    “AccessToken”: “asdlfasdfasdfasdfasdfasldkj”,

    “GrantType”: “bearer”

}

4. Using AccessToken (from last point), call below given any service URL e.g. Client_Get . This will return JSON

https://apps.timesolv.com/Services/rest/oauth2v1/client?Authorization={mandatory}&clientId={1234}

Response:

[

    {

        “client”: {

            “Id”: 1245536,

            “ClientName”: “abc”,

            “ClientId”: “1245536”,

            ….

        }

    }

Related articles

Scroll to Top