Giter Site home page Giter Site logo

shopify_storefront's Introduction

A package for Shopify Storefront GraphQL queries.

Features

Simply make Shopify GraphQL queries in just 2 lines of code. The list of queries you can make is available at https://shopify.dev/custom-storefronts/tools/graphiql-storefront-api. This Package is only tested for Storefront APIs. Make a Flutter app from Shopify website as simple as that. Exception handling is already included.

Getting started

You have to have a Shopify website to start using this package. This package is used only when you need a Flutter app based on your Shopify website. This package is only tested with storefront api which is used to get product details, customer details etc. A full list of available items can be seen in the link below https://shopify.dev/custom-storefronts/tools/graphiql-storefront-api The latest version of the Storefront api can also be noted from the above link. The default version we are using is 2023-01. You can change it from the code. You have to create a custom app from the shopify dashboard to get access token.

Usage

Just add the access token, app name and query in that one line of code

String query = "query {shop { name } }";
...
...
return FutureBuilder(
      future: ShopifyStoreFront(
              'xgg85i66544852o7894byy6ii8546p9', 'esefire-wel')
          .fetchDataFromShopify(query),
      builder: (context, snapshot) => Text(snapshot.data ?? ''),
    );

Additional information

All contributions are encouraged.

shopify_storefront's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.