-
Notifications
You must be signed in to change notification settings - Fork 21
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
4 changed files
with
126 additions
and
522 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
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Configuring API host | ||
|
||
By default, API requests are sent to the `https://api.lokalise.com/api2/` URL that acts as a host. | ||
|
||
OAuth 2 authentication requests are sent to `https://app.lokalise.com`. | ||
|
||
OTA requests are sent to `https://ota.lokalise.com`. | ||
|
||
To override the API host, use the following approach (works for all client types): | ||
|
||
```js | ||
const client = new LokaliseApi({ | ||
// other config ... | ||
host: "http://example.com", | ||
}); | ||
``` | ||
|
||
Then use your `client` as usual. |
Oops, something went wrong.