https://github.com/admirsaheta/shopify-rust
A wrapper for making applications with Rust for Shopify
https://github.com/admirsaheta/shopify-rust
backend cargo crate rust shopify
Last synced: about 2 months ago
JSON representation
A wrapper for making applications with Rust for Shopify
- Host: GitHub
- URL: https://github.com/admirsaheta/shopify-rust
- Owner: admirsaheta
- Created: 2022-12-26T12:26:01.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T10:29:15.000Z (over 2 years ago)
- Last Synced: 2025-10-12T09:07:32.501Z (8 months ago)
- Topics: backend, cargo, crate, rust, shopify
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shopify-rust
A Rust library for interacting with the Shopify API.
## Features
- Supports authentication to Shopify store (that is currently the only thing it does)
- 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:
```rust
[dependencies]
shopify-rust = "0.1"
```
## Usage
To use `shopify-rust`, include it in your code and call the desired functions:
```rust
use shopify_rust::{ShopifyApp, Credentials, AccessMode};
fn main() {
let credentials = Credentials::new("ABCD".to_string(), "WXYZ".to_string());
let access_mode = AccessMode::Online;
let auth_callback_url = String::from("htpp://127.0.0.1");
let host = String::from("SHOP_NAME.myshopify.com");
let scopes = vec!["write_products"];
let shop = ShopApp::new(
access_mode,
auth_callback_url,
credentials,
host,
scopes
)
}
```
## Prerequisites
- A Shopify store
- A Shopify API key and password