| Package | Description |
|---|---|
| uk.co.visalia.brightpearl.apiclient | |
| uk.co.visalia.brightpearl.apiclient.auth |
| Modifier and Type | Method and Description |
|---|---|
String |
BrightpearlApiClient.fetchStaffToken(PublicAppIdentity appIdentity,
Account account,
UserCredentials userCredentials)
Using private app details and user credentials, attempts authentication of the user and returns their staff token
if they are authorised to use the app.
|
| Modifier and Type | Method and Description |
|---|---|
static PublicAppIdentity |
PublicAppIdentity.create(String developerReference,
String appReference)
Create a public app identity where the secret will not be required, either because all authentication will use
staff tokens or because account tokens will be supplied already signed.
|
static PublicAppIdentity |
PublicAppIdentity.create(String developerReference,
String developerSecret,
String appReference)
Create a public app identity with an optional developer secret for signing account tokens.
|
PublicAppIdentity |
PublicAppAuthorisation.getAppIdentity() |
| Modifier and Type | Method and Description |
|---|---|
static PublicAppAuthorisation |
PublicAppAuthorisation.staff(PublicAppIdentity appIdentity,
Account account,
String staffToken)
Create account authorisation details for a staff authorised API call.
|
static PublicAppAuthorisation |
PublicAppAuthorisation.system(PublicAppIdentity appIdentity,
Account account,
String accountToken)
Create account authorisation details for a system-to-system call using an account token.
|
Copyright © 2014. All Rights Reserved.