Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Example application written in Ruby for API documentation.

License

NotificationsYou must be signed in to change notification settings

n00bdevel/example-ruby-app

 
 

Repository files navigation

This repository is home to the code examples highlighted in variousShopify API tutorials. They are designed solely for the purpose of introducing new developers to the Shopify API. The example apps are written inSinatra, but the concepts presented will also apply to developers building applications in other languages such as Python, Node.js and PHP.

Tutorial index

1 Getting Started: Building a public Shopify application (tutorial)

2 Charging For Your App: Adding billing to your app (tutorial)

Requirements

Credentials

Followthis guide to obtain your public app credentials from your Shopify Partners account.

This example app uses a.env file to store app credentials. After cloning the repository, create a.env file in the root folder (/example-ruby-app) using the code snippet below. Then, copy the values of theAPI Key andAPI Secret from your partner dashboard, and use them as the values in.env.

API_KEY=YOUR_API_KEYAPI_SECRET=YOUR_SECRET_KEY

YOUR_API_KEY andYOUR_SECRET_KEY are the values you must replace.

App URL

This tutorial series usesngrok to create a secure tunnel from the internet to your local machine. For each installment in the series, you will need to copy theAPP_URL generated by ngrok to yourapp.rb file. Additionally, theAPP_URL needs to be added to theApp URLs section of your public app settings. These procedures are covered in theBuilding a public Shopify application tutorial.

Running the app

bundleinstallruby01\Getting\Started/app.rb

About

Example application written in Ruby for API documentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby100.0%

[8]ページ先頭

©2009-2025 Movatter.jp