Skip to content

Add fmDataSource option when creating client #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ After connecting to a datastore you can import and create clients. A client is c
| server | <code>String</code> | The FileMaker server to use as the host. **Note:** Must be an http or https Domain. |
| user | <code>String</code> | The FileMaker user account to be used when authenticating into the Data API |
| password | <code>String</code> | The FileMaker user account's password. |
| fmDataSource | <code>Array</code> | External FileMaker Data Source Authentication |
| [name] | <code>String</code> | A name for the client. |
| [usage] | <code>Boolean</code> | Track Data API usage for this client. **Note:** Default is `true` |
| [timeout] | <code>Number</code> | The default timeout time for requests **Note:** Default is 0, (no timeout) |
Expand All @@ -243,6 +244,17 @@ const client = Filemaker.create({
server: process.env.SERVER,
user: process.env.USERNAME,
password: process.env.PASSWORD,
fmDataSource: [
{
database: process.env.EXTERNAL_DB,
username: process.env.EXTERNAL_DB_USERNAME,
password: process.env.EXTERNAL_DB_PASSWORD,
// or...
oAuthRequestId: requestIdHere,
oAuthIdentifier: identifierHere
}
// more...
]
usage: process.env.CLIENT_USAGE_TRACKING
});
```
Expand Down
Loading