#api #shopify #products #own #create #retrieve #orders

shopify-rust

A Rust Library for interacting with the Shopify API

1 unstable release

0.1.0 Dec 26, 2022

#5 in #shopify

MIT license

13KB
185 lines

shopify-rust

A Rust library for interacting with the Shopify API.

Features

  • Supports all Shopify API endpoints
  • Allows you to retrieve, create, update, and delete products, orders, and other resources
  • Easy to install and use in your own Rust projects

Installation

To use shopify-rust in your own project, add it as a dependency in your Cargo.toml file:

[dependencies]
shopify-rust = "0.1"

Usage

To use shopify-rust, include it in your code and call the desired functions:

extern crate shopify_rust;

use shopify_rust::{Client, Product};

fn main() {
  let client = Client::new("MY_SHOP_DOMAIN", "MY_ACCESS_TOKEN");
  let products = client.get_products().unwrap();
    for product in products {
      println!("{} - {}", product.id, product.title);
    }
}

Documentation

For more detailed documentation and examples, see the API reference and the examples.

Prerequisites

  • A Shopify store
  • A Shopify API key and password

Contributing

We welcome contributions to shopify-rust. If you'd like to contribute, please follow the contributing guidelines.

Dependencies

~4.5MB
~80K SLoC