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
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Please contact [email protected] for your credientials.
35
35
### Option 1: SDK
36
36
The SDK can be included to handle authorization. There is no need for you to handle checksum generation and verification.
37
37
38
-
##### Install
38
+
####Setup SDK
39
39
40
40
Maven
41
41
###### Step 1. Add repo to your root pom.xml
@@ -48,7 +48,7 @@ Maven
48
48
</repositories>
49
49
```
50
50
51
-
Step 2. Add the dependency
51
+
###### Step 2. Add the dependency
52
52
```
53
53
<dependencies>
54
54
<dependency>
@@ -70,19 +70,19 @@ allprojects {
70
70
}
71
71
```
72
72
73
-
Step 2. Add the dependency
73
+
###### Step 2. Add the dependency
74
74
```
75
75
dependencies {
76
76
compile 'com.github.User:Repo:Tag'
77
77
}
78
78
79
79
```
80
80
81
-
#####Configuration
81
+
#### Configuration
82
82
```
83
83
AppInstance.AFConfig config = new AppInstance.AFConfig("EXECUTOR_URL", "SECRET_KEY", "APP_KEY");
84
84
```
85
-
#####Execution
85
+
#### Execution
86
86
```
87
87
AppInstance travelProvider = new AppInstance(config, "MODULE_HANDLE");
88
88
travelProvider.exec("INTENT", JSONObject("PAYLOAD"), "UUID", new Callback() {
@@ -101,13 +101,13 @@ travelProvider.exec("INTENT", JSONObject("PAYLOAD"), "UUID", new Callback() {
101
101
### Option 2: API Endpoint
102
102
appsfly.io exposes a single API endpoint to access Microservices directly.
103
103
104
-
#####Endpoint
104
+
#### Endpoint
105
105
https://microapps.appsfly.io/executor/exec
106
106
107
-
#####Method
107
+
#### Method
108
108
POST
109
109
110
-
#####Headers
110
+
#### Headers
111
111
| Header | Description |
112
112
| --- | --- |
113
113
| X-UUID |[UUID](#UUID)|
@@ -116,7 +116,7 @@ POST
116
116
| X-Checksum | CHECKSUM. Please go through [this gist](https://gist.github.com/prateektc/95e649649ee819b300914de76330369b) to generate checksum. |
117
117
| Content-Type | Must be "application/json" |
118
118
119
-
#####Body
119
+
#### Body
120
120
[INTENT](#INTENT), [PAYLOAD](#PAYLOAD)
121
121
```
122
122
{
@@ -125,5 +125,7 @@ POST
125
125
}
126
126
```
127
127
128
-
##### Response
128
+
----------------------------------------
129
+
130
+
### Micro Service Response
129
131
Response format will be dependent on microservice. Please go through [this documentation](https://github.com/appsflyio/devkit-javautils/blob/master/MICROSERVICE_SPEC.md) for different microservices.
0 commit comments