Rye SDK
Get started
The Rye SDK provides convenient access to the Rye API via the Rye client from which users can make queries and mutations easily.
Installation
Install the package with:
Client initialization
The client needs to be created with your account’s API authorization header and the IP address of your end shopper.
Headers can be found in the Rye Console, although note that the value provided for “Shopper IP” represents your IP address. For production use cases, you should use the end shopper’s IP address rather than a hardcoded constant.
The client will automatically make requests to the correct environment based on your authHeader
.
Resources
- npm package
- GitHub repository - pull requests welcome!
Was this page helpful?