Skip to content

Commit 7042ad4

Browse files
committed
Reformat json.
1 parent 15eccb9 commit 7042ad4

2 files changed

Lines changed: 19 additions & 14 deletions

File tree

src/pages/authentication.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,12 @@ Here's how to request a token using cURL:
1616
```bash {{ title: 'Example request to retrieve your bearer token' }}
1717
curl --request POST --url https://authz.sentrypeer.com/oauth/token \
1818
--header 'content-type: application/json' \
19-
--data '{"client_id":"{ your_client_id }","client_secret":"{ your_client_secret", "audience":"https://sentrypeer.com/api","grant_type":"client_credentials"}'
19+
--data '{
20+
"client_id": "your_client_id",
21+
"client_secret": "your_client_secret",
22+
"audience": "https://sentrypeer.com/api",
23+
"grant_type": "client_credentials"
24+
}'
2025
```
2126

2227
Always keep your client credentials safe and reset your client secret if you suspect it has been compromised. Better yet,

src/pages/honeypot-events.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,19 @@ The event model contains all the information about a SIP probe that a honeypot d
7979
curl https://sentrypeer.com/api/events \
8080
-H "Authorization: Bearer {token}" \
8181
-d '{
82-
"app_name":"sentrypeer",
83-
"app_version":"v3.0.0",
84-
"event_timestamp":"2022-02-22 11:19:15.848934346",
85-
"event_uuid":"4503cc92-26cb-4b3e-bb33-69a83fa09321",
86-
"created_by_node_id":"4503cc92-26cb-4b3e-bb33-69a83fa09321",
87-
"collected_method":"responsive",
88-
"transport_type":"UDP",
89-
"source_ip":"45.134.144.128",
90-
"destination_ip":"XX.XX.XX.XX",
91-
"called_number":"0046812118532",
92-
"sip_method":"OPTIONS",
93-
"sip_user_agent":"friendly-scanner",
94-
"sip_message":"full SIP message"
82+
"app_name": "sentrypeer",
83+
"app_version": "v3.0.0",
84+
"event_timestamp": "2022-02-22 11:19:15.848934346",
85+
"event_uuid": "4503cc92-26cb-4b3e-bb33-69a83fa09321",
86+
"created_by_node_id": "4503cc92-26cb-4b3e-bb33-69a83fa09321",
87+
"collected_method": "responsive",
88+
"transport_type": "UDP",
89+
"source_ip": "45.134.144.128",
90+
"destination_ip": "XX.XX.XX.XX",
91+
"called_number": "0046812118532",
92+
"sip_method": "OPTIONS",
93+
"sip_user_agent": "friendly-scanner",
94+
"sip_message": "full SIP message"
9595
}'
9696
```
9797
</CodeGroup>

0 commit comments

Comments
 (0)