Skip to content

Commit d024a40

Browse files
authored
Merge pull request #1427 from Ishavyas9/main
apis-for-app-testing doc updated
2 parents 50a358c + 23dcd95 commit d024a40

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

docs/apis-for-app-testing.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,23 +239,28 @@ Shown below is the response to the above cURL request.
239239
## Generate publicly shareable build and test links
240240
***
241241

242-
To generate public shareable build link, run the below cURL command.
242+
To generate public **shareable build link**, run the below cURL command.
243243

244244
<div className="lambdatest__codeblock">
245245
<CodeBlock className="language-bash">
246246
{`curl 'https://api.lambdatest.com/lshs/api/v1.0/share-item/generate-sharable-link' \
247-
-H 'authorization: Bearer <Bearer Token>' \
248-
--data-raw '{"entityIds":["123456"],"entityType":"App Automation Build","expiresAt":7}'`}
247+
-H 'Content-Type: application/json' \
248+
-u "${YOUR_LAMBDATEST_USERNAME()}:${YOUR_LAMBDATEST_ACCESS_KEY()}" \
249+
--data-raw '{"entityIds":["buildID"],"entityType":"App Automation Build","expiresAt":7}'`}
249250
</CodeBlock>
250251
</div>
251252

252-
To generate public shareable test link, run the below cURL command.
253+
254+
To generate public **shareable test link**, run the below cURL command.
253255

254256
<div className="lambdatest__codeblock">
255257
<CodeBlock className="language-bash">
256258
{`curl 'https://api.lambdatest.com/lshs/api/v1.0/share-item/generate-sharable-link' \
257-
-H 'authorization: Bearer <Bearer Token>' \
258-
--data-raw '{"entityIds":["APPTESaBCDefGHI5JlMnOPQ"],"entityType":"App Automation Test","expiresAt":7}'`}
259+
-H 'Content-Type: application/json' \
260+
-u "${YOUR_LAMBDATEST_USERNAME()}:${YOUR_LAMBDATEST_ACCESS_KEY()}" \
261+
--data-raw '{"entityIds":["testID"],"entityType":"App Automation Test","expiresAt":7}'
262+
`}
263+
259264
</CodeBlock>
260265
</div>
261266

@@ -267,6 +272,11 @@ To generate public shareable test link, run the below cURL command.
267272

268273
-----
269274

275+
:::note
276+
The shareable links are valid for a period of 7, 15, or 30 days, after which they will expire.
277+
278+
:::
279+
270280
>That’s all! In case you have any questions or need any additional information, you could reach out at our <span className="doc__lt" onClick={() => window.openLTChatWidget()}>**24X7 Chat Support**</span> or mail us directly at [email protected].
271281
272282
<nav aria-label="breadcrumbs">

0 commit comments

Comments
 (0)