Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple sample #872

Closed
7ynk3r opened this issue May 12, 2024 · 2 comments
Closed

Simple sample #872

7ynk3r opened this issue May 12, 2024 · 2 comments

Comments

@7ynk3r
Copy link

7ynk3r commented May 12, 2024

Overview/summary

Can you improve your documentation? Most people don't care about all the options and API if they cannot simply authenticate successfully. Can you add a code sample E2E do to exactly that?

Currently you have this, which is trying to help but it doesn't. You still need something else to know if your creds work

import '@shopify/shopify-api/adapters/node';
import {shopifyApi, LATEST_API_VERSION} from '@shopify/shopify-api';
import express from 'express';

const shopify = shopifyApi({
  // The next 4 values are typically read from environment variables for added security
  apiKey: 'APIKeyFromPartnersDashboard',
  apiSecretKey: 'APISecretFromPartnersDashboard',
  scopes: ['read_products'],
  hostName: 'ngrok-tunnel-address',
  ...
});

const app = express();

🙏

@lizkenyon
Copy link
Contributor

Hi there 👋

Thank you for your feedback!

A couple of questions for you to help us best figure out our short comings, and how I can best direct you to the appropriate place for next steps!

  1. What libraries are you currently trying to use? (It looks like just shopify-api? Not shopify-app-express or shopify-app-remix?)
  2. How did you discover this package? Google search? Or did you come from documentation from Shopify.dev? (This info can help us optimize the wayfinding of our documentation.)

If you are just getting started with Shopify App Development I would recommend starting out with the Create an app and Build a Shopify app using Remix tutorials. This is our recommended stack for building apps, and has the most documentation.

If you don't want to use Remix, we do have further example code for express. I believe this example of using the shopify-app-express library could be what you are looking for.

Copy link
Contributor

We are closing this issue because we did not hear back regarding additional details we needed to resolve this issue. If the issue persists and you are able to provide the missing clarification we need, feel free to respond and reopen this issue.

We appreciate your understanding as we try to manage our number of open issues.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants