Description Usage Arguments Details Value Functions See Also Examples
View source: R/wrappers.etsy.R
Generic wrappers to the HTTP methods used in the etsy API
1 2 3 4 5 |
methodName |
Name of the etsy API method to use |
accessToken |
An Auth1.0 token with the required authorization scope for |
debugMode |
Logical flag, default value FALSE. When TRUE, the GET call is made verbose and the value returned includes details on the content and the response |
... |
In |
eGET
eGET returns the response of methodName
, parsed into a data.frame
.
When debugMode = TRUE
, the returned value is a list containing:
content. The parsed content of the response
contentDetails. List of attributes of the content, including count and pagination.
responseDetails. List of attributes of the response, including http_status, url, etc.
ePUT
: Etsy PUT wrapper
ePOST
: Etsy POST wrapper
[etsy.access_token()]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | allActiveListings <- eGET("findAllListingActive")
myShopActiveListings <- eGET("findAllShopListingsActive", shop_id = etsy$shop_id, limit = 100)
myReceipts <- eGET("findAllShopReceipts", token = etsy.access_token("transactions_r"), shop_id = etsy$shop_id)
ePUT("updateListing", accessToken = etsy.access_token("listings_w"), listing_id = 757810862, debugMode = TRUE, body = list(state = "inactive"))
ePOST("createListing",
body = list(quantity = 1,
title = "test title",
description = "test description",
price = 1,
who_made = "i_did",
is_supply = "false",
when_made = "made_to_order",
shipping_template_id = "27897639858"),
accessToken = etsy.access_token("listings_w"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.