onairos 0.1.2 → 0.1.3
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/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ Individual Request Information:
|
|
|
46
46
|
- `description`: Description to display to users about your request
|
|
47
47
|
- `reward`: Reward Given to User for granting Data Request
|
|
48
48
|
|
|
49
|
-
Then instantiate the Onairos object from the Onairos package - passing in your
|
|
49
|
+
Then instantiate the Onairos object from the Onairos package - passing in your Request Object and other meta info
|
|
50
50
|
```jsx
|
|
51
51
|
<Onairos requestData={requestData} webpageName={webpageName} proofMode={proofMode} />
|
|
52
52
|
```
|
|
@@ -68,6 +68,7 @@ event.data.type === 'API_URL_RESPONSE'
|
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
You will also be given an ACCESS TOKEN which you must use in any API requests from that specific client.
|
|
71
|
+
|
|
71
72
|
This is a short lived token, for usage on your developer registered domain only, and lasts for 1 hour from issue.
|
|
72
73
|
|
|
73
74
|
For example:
|
|
@@ -127,6 +128,7 @@ Example JSON body for the POST request:
|
|
|
127
128
|
```
|
|
128
129
|
|
|
129
130
|
You can then call the Inference API with the Inference object created above.
|
|
131
|
+
|
|
130
132
|
Remember to include the access token in the Authorization header of your API request.
|
|
131
133
|
|
|
132
134
|
|