GET https://{shop}.myshopify.com/admin/api/products.json?limit=3 # page 1
#... Response Header
Link: "<https://{shop}.myshopify.com/admin/api/2019-07/products.json?page_info=hijgklmn&limit=3>; rel=next"
#...
GET https://{shop}.myshopify.com/admin/api/2019-07/products.json?page_info=hijgklmn&limit=3 # page 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pylint: disable-msg=too-many-arguments | |
from urllib.parse import urlencode | |
import requests | |
class GiphyApiException(Exception): | |
pass | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Testing Gist | |
var heapSort = function(arr) { | |
var n = arr.length; | |
for(var i = Math.floor(n/2) - 1; i >= 0; i--) | |
heapify(arr, n, i); | |
for(var i = n - 1; i >= 0; i--) { | |
swap(arr, 0, i); | |
heapify(arr, i, 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type __Schema { | |
types: [__Type!]! | |
queryType: __Type! | |
mutationType: __Type | |
subscriptionType: __Type | |
directives: [__Directive!]! | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM products | |
WHERE ID > <since_id_param> | |
ORDER BY ID ASC | |
LIMIT 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://api.stripe.com/v1/charges?limit=3 # page 1 | |
https://api.stripe.com/v1/charges?starting_after=prod_GscR7tGwKBwJ6C&limit=3 # page 2 | |
https://api.stripe.com/v1/charges?starting_after=prod_GscR7tAbCDewJ1&limit=3 # page 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM products | |
ORDER BY Id | |
LIMIT 20 | |
OFFSET 200; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM products | |
ORDER BY Id | |
LIMIT 20 | |
OFFSET 200; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`GET /products?limit=20&page=1` # -> Returns the **first Page** | |
`GET /products?limit=20&page=2` # -> Returns the **second Page** | |
`GET /products?limit=20&page=3` # -> Returns the **third Page** | |
`....` | |
`....` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PriceCalculation Example Gist: https://gist.github.com/ignacio-chiazzo/47f19baf6591525da83620647fb0f862 | |
Pricing Schema Gist https://gist.github.com/ignacio-chiazzo/83898d53528a502e217463bbb3dd5c91 | |
Consumer 1 Logic https://gist.github.com/ignacio-chiazzo/677bb5797160c2d06659747f36240900 | |
Consumer 2 Logic https://gist.github.com/ignacio-chiazzo/7e51ff0bb4b6d1a0fb445181453e3d47 | |
Price Calculation Gem https://gist.github.com/ignacio-chiazzo/6da5081ae978840ebf2b64c358a432ff |
OlderNewer