Skip to content
This repository was archived by the owner on Sep 1, 2021. It is now read-only.

Commit e6842ee

Browse files
authored
Updated credentials links (#25)
1 parent 6d84c09 commit e6842ee

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ Note:
6868

6969
The `[api_key]` authenticates requests to the API.
7070
You can use any key type with the client, however each has a different scope.
71-
For more information on keys, check out the [documentation](https://swiftype.com/documentation/app-search/credentials).
71+
For more information on keys, check out the [documentation](https://swiftype.com/documentation/app-search/api/credentials).
7272

7373
#### Swiftype.com App Search users:
7474

7575
When using the [SaaS version available on swiftype.com](https://app.swiftype.com/as) of App Search, you can configure the client using your `host_identifier` instead of the `base_endpoint` parameter.
76-
The `host_identifier` can be found within the [Credentials](https://app.swiftype.com/ascredentials) menu.
76+
The `host_identifier` can be found within the [Credentials](https://app.swiftype.com/as#/credentials) menu.
7777

7878
```python
7979
>>> from elastic_app_search import Client
@@ -389,7 +389,11 @@ Creating a search key that will only search over the body field.
389389
>>> api_key = 'private-mu75psc5egt9ppzuycnc2mc3'
390390
>>> api_key_name = 'my-api-token'
391391
>>> signed_search_key = Client.create_signed_search_key(api_key, api_key_name, {'search_fields': { 'body': {}}})
392-
>>> client = Client(host_identifier, signed_search_key)
392+
>>> client = Client(
393+
base_endpoint='localhost:3002/api/as/v1',
394+
api_key=signed_search_key,
395+
use_https=False
396+
)
393397
```
394398

395399
### Create a Meta Engine

0 commit comments

Comments
 (0)