@adobe/fetch
Advanced tools
Comparing version 0.1.9 to 0.2.0
{ | ||
"name": "@adobe/fetch", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"description": "Call Adobe APIs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -54,3 +54,3 @@ [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) | ||
The config object is where you pass in all the required and optional parameters to authenticate API calls. | ||
The `config` object is where you pass in all the required and optional parameters to authenticate API calls. | ||
@@ -70,3 +70,3 @@ | parameter | integration name | required | type | default | | ||
For instance if you need to be authenticated to call API's for both GDPR and User Management you would [look them up](https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/JWT/Scopes.md) and find that they are: | ||
For instance, if you need to be authenticated to call API's for both GDPR and User Management you would [look them up](https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/JWT/Scopes.md) and find that they are: | ||
@@ -76,3 +76,3 @@ - GDPR: <https://ims-na1.adobelogin.com/s/ent_gdpr_sdk> | ||
They you would create an array of **metaScopes** as part of the config object. For instance: | ||
Then you would create an array of **metaScopes** as part of the `config` object. For instance: | ||
@@ -94,4 +94,6 @@ ```javascript | ||
However, if you omit the IMS url the package will automatically add it for you when making the call to generate the JWT. For example: | ||
However, if you omit the IMS URL, the package will automatically add it for you when making the call to generate the JWT. | ||
For example: | ||
```javascript | ||
@@ -116,3 +118,3 @@ const config = { | ||
It is possible to use any other storage for token persistance. This is done by providing **read** and **write** methods as follows: | ||
It is possible to use any other storage for token persistence. This is done by providing **read** and **write** methods as follows: | ||
@@ -180,3 +182,3 @@ ```javascript | ||
We use [debug](https://github.com/visionmedia/debug) to log requests. In order to see all the debug output, including the request identifiers, run your app with **DEBUG** environment variable including the **@adobe/fetch** scope as follows: | ||
We use [debug](https://github.com/visionmedia/debug) to log requests. In order to see all the debug output, including the request identifiers, run your app with the **DEBUG** environment variable including the **@adobe/fetch** scope as follows: | ||
``` | ||
@@ -183,0 +185,0 @@ DEBUG=@adobe/fetch |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73491
20858
189