Copyright | (c) 2018 Chris D'Aloisio |
---|---|
License | MPL-2.0 |
Maintainer | chris.daloisio@bellroy.com |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Use this module to construct a valid authentication method for your SOAP service.
You can use TokenPassport
to build your tokenPassport header for your SOAP request.
It is probably better to use the helper function instead as it will construct the nonce and signature for you.
Synopsis
Token Authentication
data TokenPassport Source #
Data type that contains all values for a valid TokenPassport
generateTokenPassport Source #
:: Account | Netsuite Account ID |
-> ConsumerKey | ConsumerKey from your Netsuite application (under integrations) |
-> ConsumerSecret | ConsumerSecret from your Netsuite application (under integrations) |
-> TokenId | Netsuite user access token ID |
-> TokenSecret | Netsuite user access token secret |
-> IO TokenPassport |
Create a valid tokenPassport. You will want to use this to pass in the result to your SOAP client.