User obtains a user token via Web services
A user who has received an activation code can use it to request a user token. You can find all endpoints on this page.
Contents |
Test the Web services
In the example below, you see how to access the web service manually and test it on a machine on which Profit has been installed.
Note:
This method only works with a local installation, not on AFAS Online. Run this call on the Profit application server.
To request a user token using an OTP:
- Use a URL from the table.
- Click on: 'GetTokenFromOTP'.
- Enter the name of the Profit user in 'userId'.
- Enter the value of API key in 'apiKey'.
- Enter the value of Environment key in 'environmentKey'.
- In 'otp', enter the OTP that Profit e-mailed to the user.
- Click on: 'Invoke'.
If the call is successful, you receive a return message with the token.
Note:
If you granted a token but the user/description does not appear in the properties of the app connector in Profit, close the properties of the app connector and re-open them. This refreshes the view on the User tokens tab and lets you see the user/description. You cannot view the token itself, it is only reported back via the web service.
SOAP call
Profit Connector for retrieving a user token for an app connector.
Fields:
- userId: Name of the Profit user.
- apiKey: API key of the app connector.
- environmentKey: Environment key of the app connector.
- otp: OTP that was sent to the user.
Directly to
|