tradly 1.0.5 → 1.0.7-6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Constants/AppConstant.js +12 -7
- package/Constants/PathConstant.js +85 -47
- package/Helper/APIParam.js +22 -0
- package/Helper/Serialization.js +8 -8
- package/NetworkManager/ErrorHandler.js +16 -16
- package/NetworkManager/NetworkManager.js +78 -44
- package/README.md +152 -1
- package/Roots/App.js +1855 -293
- package/Roots/Initialize.js +29 -38
- package/Roots/Roots.js +5 -6
- package/Roots/SetSDK.js +74 -0
- package/Roots/User.js +127 -49
- package/index.js +1 -1
- package/package.json +32 -20
package/Constants/AppConstant.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export var APPCONSTANT = {
|
|
2
|
+
TOKEN: "",
|
|
3
|
+
CURRENCY: "",
|
|
4
|
+
ENVIRONMENT: "",
|
|
5
|
+
DOMAIN: "",
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const TYPES = {
|
|
9
|
+
account: "accounts",
|
|
10
|
+
listing: "listings",
|
|
11
|
+
event: "event",
|
|
12
|
+
};
|
|
@@ -1,47 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export const
|
|
13
|
-
export const
|
|
14
|
-
export const
|
|
15
|
-
export const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
|
|
32
|
-
export const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export const
|
|
36
|
-
export const
|
|
37
|
-
|
|
38
|
-
export const
|
|
39
|
-
export const
|
|
40
|
-
|
|
41
|
-
export const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export const
|
|
45
|
-
export const
|
|
46
|
-
export const
|
|
47
|
-
export const
|
|
1
|
+
import Environment from "../Helper/APIParam.js";
|
|
2
|
+
import { APPCONSTANT } from "./AppConstant.js";
|
|
3
|
+
|
|
4
|
+
var AppName = "Traldy SDK";
|
|
5
|
+
export default AppName;
|
|
6
|
+
|
|
7
|
+
//User module paths
|
|
8
|
+
export var DEV = "https://api.dev.tradly.app";
|
|
9
|
+
export var PRO = "https://api.tradly.app";
|
|
10
|
+
export var SANDBOX = "https://api.sandbox.tradly.app";
|
|
11
|
+
// export var BASEURL = Environment(APPCONSTANT.ENVIRONMENT);
|
|
12
|
+
export const REFRESH = "/v1/users/token/refresh";
|
|
13
|
+
export const TENANTS = "/v1/tenants/";
|
|
14
|
+
export const CONFIG = "/configs";
|
|
15
|
+
export const CONFIGLIST = "/v1/configs?key_group=";
|
|
16
|
+
export const GROUPCONFIGLIST = "/v1/configs/list_grouped?key_group=";
|
|
17
|
+
|
|
18
|
+
export const LOGIN = "/v1/users/login";
|
|
19
|
+
export const SOCIAL_LOGIN = "/v1/users/social_login";
|
|
20
|
+
export const REGISTER = "/v1/users/register";
|
|
21
|
+
export const VERIFY = "/v1/users/verify";
|
|
22
|
+
export const FORGOTPASSWORD = "/v1/users/password/recovery";
|
|
23
|
+
export const SETPASSWORD = "/v1/users/password/set";
|
|
24
|
+
|
|
25
|
+
export const USERS = "/v1/users";
|
|
26
|
+
export const DEVICES = "/v1/devices";
|
|
27
|
+
|
|
28
|
+
export const ADDRESS = "/v1/addresses";
|
|
29
|
+
export const CURRENCY = "/v1/currencies";
|
|
30
|
+
export const LANGUAGES = "/v1/languages";
|
|
31
|
+
export const COUNTRIES = "/v1/countries";
|
|
32
|
+
export const TENANTSCOUNTRIES = "/v1/tenants/countries";
|
|
33
|
+
|
|
34
|
+
export const CATEGORY = "/v1/categories";
|
|
35
|
+
export const ATTRIBUTE = "/v1/attributes";
|
|
36
|
+
export const VALUES = "/values";
|
|
37
|
+
|
|
38
|
+
export const ACCOUNTS = "/v1/accounts";
|
|
39
|
+
export const FOLLOW = "/follow";
|
|
40
|
+
export const BLOCK = "/block";
|
|
41
|
+
export const REPORT = "/report";
|
|
42
|
+
|
|
43
|
+
export const LISTINGS = "/products/v1/listings";
|
|
44
|
+
export const LIKE = "/likes";
|
|
45
|
+
export const SCHEDULE = "/schedules";
|
|
46
|
+
export const SCHEDULEPERDAY = "/schedules_per_day?";
|
|
47
|
+
export const SLUG = "/by_slug/";
|
|
48
|
+
|
|
49
|
+
export const VARIANTTYPES = "/products/v1/variant_types";
|
|
50
|
+
export const VARIANTS = "/variants";
|
|
51
|
+
|
|
52
|
+
export const PAYMENTSMETHODS = "/v1/tenants/payment_methods";
|
|
53
|
+
export const TENANTSHIPPINGMETHOD = "/v1/tenants/shipping_methods";
|
|
54
|
+
export const SHIPPINGMETHOD = "/v1/shipping_methods";
|
|
55
|
+
|
|
56
|
+
export const S3SIGNEDURL = "/v1/utils/S3signedUploadURL";
|
|
57
|
+
export const SEARCHADDRESS = "/v1/addresses/search?key=";
|
|
58
|
+
|
|
59
|
+
export const HOME = "/products/v1/home";
|
|
60
|
+
export const ORDERS = "/products/v1/orders";
|
|
61
|
+
|
|
62
|
+
export const CART = "/products/v1/cart";
|
|
63
|
+
export const CHECKOUT = "/checkout";
|
|
64
|
+
export const EPHERMERALKEY = "/v1/payments/stripe/ephemeralKey";
|
|
65
|
+
export const PAYMENTINTENT = "/v1/payments/stripe/paymentIntent";
|
|
66
|
+
|
|
67
|
+
export const STRIPECONNECTACCOUNT =
|
|
68
|
+
"/v1/payments/stripe/connect/account?account_id=";
|
|
69
|
+
export const CREATEACCOUNTLINK = "/v1/payments/stripe/connect/account_links";
|
|
70
|
+
export const CREATEEXPRESSLOGINLINK = "/v1/payments/stripe/connect/login_links";
|
|
71
|
+
|
|
72
|
+
export const STATUS = "/status";
|
|
73
|
+
export const REVIEW = "/v1/reviews";
|
|
74
|
+
|
|
75
|
+
export const COLLECTIONS = "/v1/collections";
|
|
76
|
+
export const PROMO = "/v1/promos";
|
|
77
|
+
export const TRANSACTIONS = "/v1/transactions";
|
|
78
|
+
export const EARNINGS = "/v1/earnings";
|
|
79
|
+
|
|
80
|
+
export const BLOCKEDACCOUNT = "/v1/accounts/feeds/blocked?type=accounts&";
|
|
81
|
+
export const FOLLOWINGACCOUNT = "/v1/accounts/feeds/following?type=accounts&";
|
|
82
|
+
|
|
83
|
+
export const FOLLOWINGLISTING = "/products/v1/feeds/following?type=listings&";
|
|
84
|
+
|
|
85
|
+
export const LAYER = "/v1/layers";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {DEV, PRO, SANDBOX } from "../Constants/PathConstant.js"
|
|
2
|
+
|
|
3
|
+
export var EVN = {
|
|
4
|
+
DEV:'development',
|
|
5
|
+
PRO: 'production',
|
|
6
|
+
SANDBOX: 'sandbox',
|
|
7
|
+
}
|
|
8
|
+
export var UserParameter = {data:{}}
|
|
9
|
+
export default function Environment(evn) {
|
|
10
|
+
switch(evn) {
|
|
11
|
+
case EVN.DEV : return DEV
|
|
12
|
+
case EVN.SANDBOX : return SANDBOX
|
|
13
|
+
case EVN.PRO : return PRO
|
|
14
|
+
default : return DEV
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export var ImageConfig = {
|
|
19
|
+
signedUrl:'',
|
|
20
|
+
mime:'',
|
|
21
|
+
blob_body:''
|
|
22
|
+
}
|
package/Helper/Serialization.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
function Serialization(param) {
|
|
3
|
-
var str = [];
|
|
4
|
-
for (var p in param)
|
|
5
|
-
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(param[p]));
|
|
6
|
-
return str.join("&");
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
|
|
2
|
+
function Serialization(param) {
|
|
3
|
+
var str = [];
|
|
4
|
+
for (var p in param)
|
|
5
|
+
str.push(encodeURIComponent(p) + "=" + encodeURIComponent(param[p]));
|
|
6
|
+
return str.join("&");
|
|
7
|
+
|
|
8
|
+
}
|
|
9
9
|
export default Serialization;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export default class ErrorHandler {
|
|
2
|
-
static errorHandle(errorCode) {
|
|
3
|
-
switch(errorCode) {
|
|
4
|
-
case 101: return 'User already exist'
|
|
5
|
-
case 102: return 'User not register'
|
|
6
|
-
case 103: return 'invalid credentials'
|
|
7
|
-
case 104: return 'Verification code is invalid'
|
|
8
|
-
case 105: return 'INVALID CREDENTIALS'
|
|
9
|
-
case 301: return 'User already exist'
|
|
10
|
-
case 401: return 'Unauthorized'
|
|
11
|
-
case 402: return 'Technical issue'
|
|
12
|
-
case 753: return 'Action not allowed'
|
|
13
|
-
default: return 'invalid or missing parameters' ;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
export default class ErrorHandler {
|
|
2
|
+
static errorHandle(errorCode) {
|
|
3
|
+
switch(errorCode) {
|
|
4
|
+
case 101: return 'User already exist'
|
|
5
|
+
case 102: return 'User not register'
|
|
6
|
+
case 103: return 'invalid credentials'
|
|
7
|
+
case 104: return 'Verification code is invalid'
|
|
8
|
+
case 105: return 'INVALID CREDENTIALS'
|
|
9
|
+
case 301: return 'User already exist'
|
|
10
|
+
case 401: return 'Unauthorized'
|
|
11
|
+
case 402: return 'Technical issue'
|
|
12
|
+
case 753: return 'Action not allowed'
|
|
13
|
+
default: return 'invalid or missing parameters' ;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -1,44 +1,78 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import {to} from
|
|
4
|
-
import axios from
|
|
5
|
-
import { APPCONSTANT} from
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { to } from "await-to-js";
|
|
4
|
+
import axios from "axios";
|
|
5
|
+
import { APPCONSTANT } from "../Constants/AppConstant.js";
|
|
6
|
+
import { REFRESH } from "../Constants/PathConstant.js";
|
|
7
|
+
import Environment, { ImageConfig } from "../Helper/APIParam.js";
|
|
8
|
+
|
|
9
|
+
var header = {
|
|
10
|
+
Accept: "application/json",
|
|
11
|
+
"Content-Type": "application/json",
|
|
12
|
+
"x-agent": 1,
|
|
13
|
+
};
|
|
14
|
+
export const Method = {
|
|
15
|
+
GET: "GET",
|
|
16
|
+
DELETE: "DELETE",
|
|
17
|
+
POST: "POST",
|
|
18
|
+
PUT: "PUT",
|
|
19
|
+
PATCH: "PATCH",
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export var TradlyConfig = {
|
|
23
|
+
path: "",
|
|
24
|
+
method: Method,
|
|
25
|
+
param: "",
|
|
26
|
+
authKey: "",
|
|
27
|
+
refreshKey: "",
|
|
28
|
+
currency: "",
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
class NetworkManager {
|
|
32
|
+
networkCall = async (config = TradlyConfig) => {
|
|
33
|
+
var BaseURL = Environment(APPCONSTANT.ENVIRONMENT);
|
|
34
|
+
var url = BaseURL + config.path;
|
|
35
|
+
header["Authorization"] = "Bearer " + APPCONSTANT.TOKEN;
|
|
36
|
+
if (config.authKey != undefined || config.authKey == "") {
|
|
37
|
+
header["x-auth-key"] = config.authKey;
|
|
38
|
+
}
|
|
39
|
+
if (config.currency != undefined || config.currency == "") {
|
|
40
|
+
header["x-currency"] = config.currency;
|
|
41
|
+
}
|
|
42
|
+
if (config.refreshKey != undefined || config.refreshKey == "") {
|
|
43
|
+
header["X-Refresh-Key"] = config.refreshKey;
|
|
44
|
+
}
|
|
45
|
+
const [err, response] = await to(
|
|
46
|
+
axios({
|
|
47
|
+
url: url,
|
|
48
|
+
method: config.method,
|
|
49
|
+
responseType: "json",
|
|
50
|
+
headers: header,
|
|
51
|
+
data: config.param,
|
|
52
|
+
})
|
|
53
|
+
);
|
|
54
|
+
if (err) {
|
|
55
|
+
let errData = err["response"]["data"];
|
|
56
|
+
return [errData, undefined];
|
|
57
|
+
} else {
|
|
58
|
+
return [undefined, response["data"]];
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
uploadImage = async (param = ImageConfig) => {
|
|
62
|
+
const [err, response] = await to(
|
|
63
|
+
axios({
|
|
64
|
+
url: param.signedUrl,
|
|
65
|
+
method: "put",
|
|
66
|
+
headers: { "Content-Type": param.mime },
|
|
67
|
+
data: param.blob_body,
|
|
68
|
+
})
|
|
69
|
+
);
|
|
70
|
+
if (err) {
|
|
71
|
+
return false;
|
|
72
|
+
} else {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
const network = new NetworkManager();
|
|
78
|
+
export default network;
|
package/README.md
CHANGED
|
@@ -1 +1,152 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://tradly.app">
|
|
3
|
+
<h1 align="center"> Tradly Platform JS SDK </h1>
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
<h3 align="center"> Launch Platforms apps superfast. Headless. API First </h3>
|
|
7
|
+
<p align="center"> The flexible and modular infrastacture to launch marketplace, community and commerce apps. </p>
|
|
8
|
+
<p align="center"><a href="https://tradly.app/tutorials">See demo videos</a></p>
|
|
9
|
+
<br />
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Tradly helps developers / non technical founders with low-code/no-code solution to launch marketplaces, Ecosystem for SaaS and commerce apps.
|
|
13
|
+
|
|
14
|
+
### Saving your time
|
|
15
|
+
Whether you want simple things like catalog creation or configure complex revenue models, we made it simple and easy to configure through our SuperAdmin. Starter kits to develop apps. Not just that, and design system is coming soon.
|
|
16
|
+
|
|
17
|
+
### Giving you peace of mind
|
|
18
|
+
You do not worry about the backend performance, security, upgrades. Our engineers take care of this. Plus optionally marketing tools integration coming up. So, you can focus on growing your business whether it’s a thousand or a million users.
|
|
19
|
+
|
|
20
|
+
### Saving your cost at every stage
|
|
21
|
+
|
|
22
|
+
Whether you are starting a simple B2C website. Or have a dream to expand into omnichannel with multiple stores and multiple sales channels(Kiosk, app, etc). We have got the modular and flexible technology ready. All this charged fair when you grow.
|
|
23
|
+
|
|
24
|
+
## Getting Started
|
|
25
|
+
|
|
26
|
+
<a href="https://developer.tradly.app" target="_blank">Read the Getting Started tutorial</a> or follow the steps below:
|
|
27
|
+
|
|
28
|
+
### ⏳ Installation
|
|
29
|
+
|
|
30
|
+
Install Tradly with this **Quickstart** command to create a Tradly project instantly:
|
|
31
|
+
|
|
32
|
+
- (Use npm/npx to install the Tradly project.)
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npx i tradly
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Usage example
|
|
39
|
+
|
|
40
|
+
```tsx
|
|
41
|
+
// App.ts
|
|
42
|
+
import TradlySDK from 'tradly';
|
|
43
|
+
|
|
44
|
+
//Initialization
|
|
45
|
+
TradlySDK.init.config({token:'',environment:'sandbox'})
|
|
46
|
+
|
|
47
|
+
// Get Response
|
|
48
|
+
const [error, responseJson] = await TradlySDK.app.getCategory({bodyParam:{'type':'listings'},authKey:'authkey'})
|
|
49
|
+
|
|
50
|
+
Enjoy 🎉
|
|
51
|
+
```
|
|
52
|
+
### 🖐 Requirements
|
|
53
|
+
|
|
54
|
+
Complete installation requirements can be found in the documentation under <a href="https://developer.tradly.app"> Installation Requirements </a>.
|
|
55
|
+
|
|
56
|
+
### Methods
|
|
57
|
+
|
|
58
|
+
#### USER Module
|
|
59
|
+
|
|
60
|
+
| Name | Function |
|
|
61
|
+
|:---|:---|
|
|
62
|
+
| Login | `user.login({data:JSON})` |
|
|
63
|
+
| Register | `user.register({data:JSON})` |
|
|
64
|
+
| Verify | `user.verify({data:JSON})` |
|
|
65
|
+
| Resend OTP | `user.resendOTP({data:JSON})` |
|
|
66
|
+
| ForgotPassword | `user.forgotPassword({data:JSON})` |
|
|
67
|
+
|
|
68
|
+
#### APP Module
|
|
69
|
+
|
|
70
|
+
| Name | Function |
|
|
71
|
+
|:---|:---|
|
|
72
|
+
| Config List | `app.getConfigList({paramBody:'',authKey:''})` |
|
|
73
|
+
| Device Info | `app.updateDeviceInfo({authKey:'',data:JSON})` |
|
|
74
|
+
| User Info | `app.updateUserInfo({authKey:'',data:JSON})` |
|
|
75
|
+
| Get Languages | `app.getLanguages({authKey:''})` |
|
|
76
|
+
| Add Edit Address | `app.addEditAddress({authKey:'',id:'',data:JSON})` |
|
|
77
|
+
| Get Address | `app.getAddress({authKey:'',bodyParam:JSON})` |
|
|
78
|
+
| Delete Address | `app.deleteAddress({authKey:'',id:''})` |
|
|
79
|
+
| Add Edit Accounts | `app.postAccounts({authKey:'',id:'',data:JSON})` |
|
|
80
|
+
| Get Accounts | `app.getAccounts({authKey:'',bodyParam:JSON})` |
|
|
81
|
+
| Get Accounts Detail | `app.getAccountDetail({authKey:'',id:''})` |
|
|
82
|
+
| Delete Accounts | `app.deleteAddress({authKey:'',id:''})` |
|
|
83
|
+
| Follow UnFollow Accounts | `app.followUnfollowAccounts({authKey:'',id:'',isFollowing:Bool})` |
|
|
84
|
+
| Block Accounts | `app.blockAccount({authKey:'',id:'',isBlocked:Bool})` |
|
|
85
|
+
| Report Accounts | `app.reportAccount({authKey:'',id:'',data:JSON})` |
|
|
86
|
+
| Get Listings | `app.getListings({authKey:'',bodyParam:JSON})` |
|
|
87
|
+
| Get Listings Detail | `app.getListingDetail({authKey:'',id:''})` |
|
|
88
|
+
| Delete Listings | `app.deleteListing({authKey:'',id:''})` |
|
|
89
|
+
| Add Edit Listings | `app.postListing({authKey:'',id:'',data:JSON})` |
|
|
90
|
+
| Like Unlike Listings | `app.likeListing({authKey:'',id:'',isLiked:Bool})` |
|
|
91
|
+
| Get Variants | `app.getVariants({authKey:''})` |
|
|
92
|
+
| Add Edit Variants | `app.addEditVariants({authKey:'',listingId:'',id:'',data:JSON})` |
|
|
93
|
+
| Delete Variants | `app.deleteVariant({authKey:'',listingId:'',id:''})` |
|
|
94
|
+
| Get Variants Types | `app.getVariantTypes({authKey:''})` |
|
|
95
|
+
| Add Edit Variants Types | `app.addEditVariantsTypes({authKey:'',id:'',data:JSON})` |
|
|
96
|
+
| Delete Variants Types | `app.deleteVariantType({authKey:'',id:''})` |
|
|
97
|
+
| Get Variants Types Values | `app.getVariantTypeValues({authKey:'',id:''})` |
|
|
98
|
+
| Get Variants Types Values Detail | `app.getVariantTypeValuesDetail({authKey:'',id:'',valueID:''})` |
|
|
99
|
+
| Add Edit Variants Types Values | `app.addEditVariantTypeValues({authKey:'',id:'',valueID:'',data:JSON})` |
|
|
100
|
+
| Delete Variants Types Values | `app.deleteVariantTypeValues({authKey:'',id:'',valueID:''})` |
|
|
101
|
+
| Get Category | `app.getCategory({authKey:'',bodyParam:JSON})` |
|
|
102
|
+
| Add Edit Category | `app.addEditCategory({authKey:'',id:'',data:JSON})` |
|
|
103
|
+
| Delete Category | `app.deleteCategory({authKey:'',id:''})` |
|
|
104
|
+
| Get Attribute | `app.getAttribute({authKey:'',bodyParam:JSON})` |
|
|
105
|
+
| Add Edit Attribute | `app.addEditAttribute({authKey:'',id:'',data:JSON})` |
|
|
106
|
+
| Delete Attribute | `app.deleteAttribute({authKey:'',id:''})` |
|
|
107
|
+
| Get Attribute Values | `app.getAttributeValues({authKey:'',id:''})` |
|
|
108
|
+
| Get Attribute Values Detail | `app.getAttributeValuesDetail({authKey:'',id:'',valueID:''})` |
|
|
109
|
+
| Add Edit Attribute Values | `app.addEditAttributeValues({authKey:'',id:'',data:JSON,valueID:''})` |
|
|
110
|
+
| Delete Attribute Values | `app.deleteAttributeValues({authKey:'',id:'',valueID:''})` |
|
|
111
|
+
| Get Cart | `app.getCarts({authKey:'',bodyParam:JSON})` |
|
|
112
|
+
| Add Cart | `app.addToCart({authKey:'',data:JSON})` |
|
|
113
|
+
| Delete Cart | `app.deleteFromCart({authKey:'',data:JSON})` |
|
|
114
|
+
| Delete All Cart Detail | `app.deleteAllCartDetail({authKey:''})` |
|
|
115
|
+
| Checkout | `app.checkout({authKey:'',data:JSON,currency:''})` |
|
|
116
|
+
| Listing Direct Checkout | `app.listingDirectCheckout({authKey:'',id:'',data:JSON,currency:''})` |
|
|
117
|
+
| Get Ephemeral Key | `app.getEphemeralKey({authKey:'',id:'',data:JSON})` |
|
|
118
|
+
| Get Payment Intent Key | `app.getPaymentIntentKey({authKey:'',id:'',data:JSON})` |
|
|
119
|
+
| Get Orders | `app.getOrders({authKey:'',bodyParam:JSON})` |
|
|
120
|
+
| Get Orders Detail | `app.getOrderDetail({authKey:'',id:''})` |
|
|
121
|
+
| Update Orders Status | `app.updateOrderStatus({authKey:'',data:JSON})` |
|
|
122
|
+
| Update Orders Detail | `app.updateOrderDetail({authKey:'',data:JSON})` |
|
|
123
|
+
| Get Reviews | `app.getReviewList({authKey:'',bodyParam:JSON})` |
|
|
124
|
+
| Add Reviews | `app.addReview({authKey:'',data:JSON})` |
|
|
125
|
+
| Like UnLike Reviews | `app.likeReview({authKey:'',data:JSON})` |
|
|
126
|
+
| Get Payment Methods | `app.getPaymentMethods({authKey:''})` |
|
|
127
|
+
| Get Shipping Methods | `app.getShippingMethods({authKey:''})` |
|
|
128
|
+
| Get Currency | `app.getCurrency({authKey:''})` |
|
|
129
|
+
| Add Edit Currency | `app.addEditCurrency({authKey:'',id:'',data:JSON})` |
|
|
130
|
+
| Delete Currency | `app.deleteCurrency({authKey:'',id:''})` |
|
|
131
|
+
| Get Collection | `app.getCollection({authKey:''})` |
|
|
132
|
+
| Get Collection Detail | `app.getCollectionDetail({authKey:'',id:''})` |
|
|
133
|
+
| Add Edit Collection | `app.addEditCollection({authKey:'',id:'',data:JSON})` |
|
|
134
|
+
| Delete Collection | `app.deleteCollections({authKey:'',id:''})` |
|
|
135
|
+
| Get Promo Banner | `app.getPromoBanner({authKey:'',bodyParam:JSON})` |
|
|
136
|
+
| Add Edit Promo Banner | `app.addPromoBanner({authKey:'',id:'',data:JSON})` |
|
|
137
|
+
| Delete Promo Banner | `app.deletePromoBanner({authKey:'',id:''})` |
|
|
138
|
+
| Get Transactions | `app.getTransactions({authKey:'',bodyParam:JSON})` |
|
|
139
|
+
| Get Earning | `app.getEarning({authKey:'',bodyParam:JSON})` |
|
|
140
|
+
|
|
141
|
+
**[See more on our website](https://tradly.app)**.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## Community support
|
|
145
|
+
|
|
146
|
+
For general help using Tradly, Join our [the official Tradly Forum](https://community.tradly.app).
|
|
147
|
+
|
|
148
|
+
- [YouTube Channel](https://www.youtube.com/channel/UCRpXlfFBX5nayubY70-IFEA) (Learn from Video Tutorials)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## Documentation
|
|
152
|
+
SDK Documentation coming soon. For now, refer API reference (https://developer.tradly.app)
|