shopify_api
An ergonomic, Shopify API Client for Rust.
- GraphQL API support with automatic data deserialization
- Changelog
Example
This asynchronous example uses Tokio and enables some
optional features, so your Cargo.toml
could look like this:
[]
= "0.8"
= { = "1", = ["full"] }
And then the code:
use *;
use ReadJsonTreeSteps;
use ;
async
Or with the new
GraphQl Client!
[]
= "0.89"
= { = "1", = ["full"] }
= "0.14.0"
query GetShop {
shop {
name
}
}
use *;
use GraphQLQuery;
;
async
Download the graphql schema
You can download one from this repository
Or download it from the Shopify Graphql API with the following command
[!WARNING] Sometimes you'll get an error with the GraphQLQuery derive caused my a missing struct, most of the time, you can fix it by adding the missing struct by importing it from the types import or you can create a new struct with the same name as the missing one, and the derive will work.
License
Licensed under MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)