Skip to content

Commit

Permalink
Updated all markdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
vandana-gupta8020 committed Jan 17, 2025
1 parent 1379e76 commit dcfc56d
Show file tree
Hide file tree
Showing 23 changed files with 461 additions and 84 deletions.
2 changes: 1 addition & 1 deletion Alarm Webhook Configuration API/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**

## **Input URL:**

Expand Down
6 changes: 3 additions & 3 deletions Intouch Alarms APIs/Alarm Configuration API.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**

- **Content-Type: `application/form-data`**
- **Content-Type: `multipart/form-data`**

## **Input Method:**
- POST
Expand Down Expand Up @@ -90,7 +90,7 @@ The API leverages OAuth 2.0 based security. Hence, the developer would need to s
```bash
curl --location 'https://intouch.mappls.com/apis/api/alarm/' \
--header 'Authorization: Bearer 0XXXXXXf-dXX0-4XX0-8XXa-eXXXXXXXXXX6' \
--header 'Contant-type: application/form-data' \
--header 'Contant-type: multipart/form-data' \
--header 'Cookie: HttpOnly' \
--form 'alarmType="28"' \
--form 'entityIds="10647019"' \
Expand Down
20 changes: 8 additions & 12 deletions Intouch Alarms APIs/Alarm Configuration Retrieval API.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**

- **Content-Type: `application/json`**

Expand Down Expand Up @@ -65,12 +65,8 @@ The API leverages OAuth 2.0 based security. Hence, the developer would need to s

## **Sample cURL Request**

```bash
curl --location 'https://intouch.mappls.com/iot/api/alarm?id=13400690&deviceId=10619089&alarmType=24' \
--header 'accept: application/json' \
--header 'Authorization: Bearer 0XXXXXXf-dXX0-4XX0-8XXa-eXXXXXXXXXX6' \
--header 'Content-Type: application/json' \
--header 'Cookie: HttpOnly'
```
https://intouch.mappls.com/iot/api/alarm?id=13431162&deviceId=10647019&alarmType=24
```

## **Sample Output**
Expand All @@ -79,14 +75,14 @@ curl --location 'https://intouch.mappls.com/iot/api/alarm?id=13400690&deviceId=1
{
"data": [
{
"id": 13400690,
"id": 13431162,
"deviceId": [
10619089
10647019
],
"alarmType": 24,
"creationTime": 1735285180,
"updationTime": 1735285180,
"severity": 0
"creationTime": 1736140629,
"updationTime": 1736140629,
"webhookUrl": ""
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions Intouch Alarms APIs/Delete Configured Alarm API.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**

- **Content-Type: `application/form-data`**
- **Content-Type:** *`Optional, Not required for this API unless sending body data.`*

## **Input Method:**
- DELETE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**
- **Content-Type: `application/json`**


Expand Down
2 changes: 1 addition & 1 deletion Intouch Alarms APIs/Update Alarm Configuration API.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**

- **Content-Type: `application/form-data`**

Expand Down
2 changes: 1 addition & 1 deletion Intouch Devices APIs/Get Device Live Data API.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**
- **Content-Type: `application/json`**


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**
- **Content-Type: `application/json`**


Expand Down
2 changes: 1 addition & 1 deletion Intouch Devices APIs/Nearby Device Locator API.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**
- **Content-Type: `application/json`**


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**
- **Content-Type: `application/json`**


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**
- **Content-Type: `application/json`**


Expand Down
31 changes: 29 additions & 2 deletions Intouch Drives APIs/Fetch Device Drive Details API.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This API follows OAuth2 based security. To know more on how to create your autho

The API leverages OAuth 2.0 based security. Hence, the developer would need to send a request for access token using their client_id and client_secret to the OAuth API. Once validated from the OAuth API, the access_token and the token_type need to be sent as Authorization header with the value: **`"{token_type} {access_token}”`.**

- **Authorization: `"{token_type} {access_token}.`**
- **Authorization: `{token_type} {access_token}.`**
- **Content-Type: `application/json`**


Expand Down Expand Up @@ -82,7 +82,34 @@ https://intouch.mappls.com/iot/api/device/drive?deviceId=10807208&startTime=1736

```json
{
"data": []
"data": [
{
"deviceId": 10807208,
"location": {
"startAddress": "Acharya Shree Tulsi Das Marg, Aravalli Biodiversity Park, Gurugram, Haryana. 2 m from Metro Pillar No 9, Pin-122002 (India)",
"endAddress": "Lado Sarai, New Delhi, Delhi. 248 m from Delhi Jal Board Government of NCT (India)",
"startTimestamp": 1736388443,
"endTimestamp": 1736389221,
"avgSpeed": 42.39,
"startLat": 28.4816017,
"startLon": 77.112845,
"endlat": 28.515034,
"endLon": 77.1923069
},
"movement": {
"duration": 778,
"distance": 12.71,
"idleTime": 130,
"movementTime": 466,
"stoppageTime": 182
},
"drivingBehaviourCount": {
"haCount": 0,
"hbCount": 0,
"hcCount": 0
}
}
]
}
```

Expand Down
Loading

0 comments on commit dcfc56d

Please sign in to comment.