Skip to content

Commit

Permalink
[Auto Generated] 1.4.10-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed Aug 21, 2024
1 parent acd3994 commit 668b6fa
Show file tree
Hide file tree
Showing 195 changed files with 27,941 additions and 25,145 deletions.
3,906 changes: 3,510 additions & 396 deletions CHANGELOG.md

Large diffs are not rendered by default.

27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,29 @@ getData();

---

### Sample Usage - Fetch function.

The fetch function allows you to make custom API requests with ease. It is available on both `platform` and `application` client.

```javascript

let auditLog = await client.request({
url: `/service/platform/audit-trail/v1.0/company/1/logs`,
method: 'GET',
});

```

The `fetch` function accepts an object with the following possible keys:

- **method** (string): The HTTP method to use (e.g., 'GET', 'POST', 'PUT', 'DELETE').
- **url** (string): The URL endpoint for the request.
- **query** (object): Query parameters to include in the request URL.
- **body** (object): The request payload to send.
- **headers** (object): Additional headers to include in the request.

---

### Cookie

Following code snippet will read and write cookies on behalf of you <br />
Expand Down Expand Up @@ -214,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
The above code will log the curl command in the console

```bash
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.8-beta.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.10-beta.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
Active Theme: Emerge
```

Expand All @@ -228,3 +251,5 @@ fdk-client-javascript includes Typescript definitions.
import { ApplicationConfig, ApplicationClient } from "fdk-client-javascript";
```



2 changes: 1 addition & 1 deletion dist/application.js

Large diffs are not rendered by default.

Loading

0 comments on commit 668b6fa

Please sign in to comment.