[Python] Python throwing error when trying to pull order data via Shopify API

Discussão em 'Python' iniciado por Stack, Outubro 27, 2024.

  1. Stack

    Stack Membro Participativo

    I am trying to play with this simple python script to pull order data from my shopify admin, but keep getting this error message (seems to be coming from line 6 as per terminal and sublime text) TypeError: not all arguments converted during string formatting:
    Here is the script,

    import shopify

    API_KEY = 'xxxxxxxxxxxxxxx'
    PASSWORD = 'xxxxxxxxxxx'
    SHOP_NAME = 'Shop name goes here'
    shop_url = "https://xxxxxxxxxxxxx@xxxxxxxxxx.myshopify.com/admin" % (API_KEY, PASSWORD, SHOP_NAME)
    shopify.ShopifyResource.set_site(shop_url)
    shop = shopify.Shop.current()

    order = shopify.Order()
    num = order.count()
    print num
    success = order.find()
    print success
    der.save()
    print success


    I am at a loss for what I am doing wrong and have tried changing line 6 every which way as this is apparently where the error is coming from (from what terminal/sublime text tells me).

    Continue reading...

Compartilhe esta Página