You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**NOTE:** You will have to generate a checkSum from the parameters, headers with the secret key provided by appsfly.io.
23
19
24
-
```
25
-
AppInstance.AFConfig config = new AppInstance.AFConfig("REPO_URL", "SECRET_KEY", "APP_KEY");
26
-
```
27
-
## Package
20
+
# Integration options
21
+
### Option 1: Package
28
22
The SDK can be included to handle the encryption and decryption along with checkSum generation and verification.
29
23
You can use it to avoid boiler plate code. If not, you can use the api endpoint.
30
24
25
+
#### Configuration
26
+
```
27
+
AppInstance.AFConfig config = new AppInstance.AFConfig("REPO_URL", "SECRET_KEY", "APP_KEY");
28
+
```
29
+
#### Execution
31
30
```
32
-
AppInstance travelProvider = new AppInstance(config, "com.domain.ms-travel");
31
+
AppInstance travelProvider = new AppInstance(config, "MODULE_HANDLE");
33
32
travelProvider.exec("doBooking", new JSONObject() {{
34
33
//Set Params Here
35
34
// We will take care of checksum
@@ -48,7 +47,7 @@ travelProvider.exec("doBooking", new JSONObject() {{
48
47
});
49
48
```
50
49
51
-
## API Endpoint ( "/executor/exec" )
50
+
### Option 2: API Endpoint ( "/executor/exec" )
52
51
53
52
appsfly.io exposes a single API endpoint to access Microservices directly. Headers are used for authentication and sessions will be managed accordingly.
0 commit comments