Skip to content

Commit

Permalink
fixup - squash me
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Oct 23, 2017
1 parent 3d3a910 commit ac6f760
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
```

Expand All @@ -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.
Expand Down Expand Up @@ -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?**
Expand Down

0 comments on commit ac6f760

Please sign in to comment.