-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,6 @@ If you'd like to use a standalone built file you can use the following script ta | |
Using `contentful@latest` will always get you the latest version, but you can also specify a specific version number: | ||
|
||
``` html | ||
<!-- Avoid using the following url for production. You can not rely on its availability. --> | ||
<script src="https://unpkg.com/[email protected]/dist/contentful.browser.min.js"></script> | ||
``` | ||
|
||
|
@@ -91,14 +90,6 @@ This library also comes with a legacy version to support Internet Explorer 11 an | |
|
||
To support legacy browsers in your application, use `contentful.legacy.min.js` instead of `contentful.browser.min.js` | ||
|
||
### Other environments: | ||
|
||
Our SDK is supplied as node and browser version. Most non-node environments, like React Native, act like a browser. To force using of the browser version, you can require it via: | ||
|
||
``` | ||
const { createClient } = require('contentful/dist/contentful.browser.min.js') | ||
``` | ||
|
||
## Authentication | ||
|
||
To get content from Contentful, an app should authenticate with an OAuth bearer token. | ||
|
@@ -251,6 +242,9 @@ for more information about the search parameters check the [documentation](https | |
|
||
- **Can I use the SDK in react native projects** | ||
- Yes it is possible | ||
- **I get the error: Unable to resolve module `http`** | ||
- Our SDK is supplied as node and browser version. Most non-node environments, like React Native, act like a browser. To force using of the browser version, you can require it via: `const { createClient } = require('contentful/dist/contentful.browser.min.js')` | ||
|
||
- **Link resolution does not work when using `client.getEntry('<entry-id>')`** | ||
- Link resolution does not work with the single entity endpoint, you can use `client.getEntries({'sys.id': '<entry-id>'})` to link an entry with resolved links | ||
- **Can I use it with typescript?** | ||
|