Jump to content

Alexander_SQSP

Squarespace Employee
  • Posts

    29
  • Joined

  • Last visited

Posts posted by Alexander_SQSP

  1. Hello @Vathson, thanks for posting your question!

    Can you do a quick test if you're able to connect to your remote repository via terminal instead? You can type the following in your terminal:

    sftp -P 2030 <your-account-email-address>@dev.squarespace.com 

    If you can connect without issues, it could be related to the settings you're using with your client. In that case, I'd recommend checking this guide.

    If the problem persists, please reach out to our support!

  2. Hello @ksho,

    Thanks for posting your question!

    This example currently works for me, though I am not exactly sure the syntax in your example is correct:
     

    import requests
    
    url = "https://api.squarespace.com/1.0/commerce/products/<product id>/images"
    
    files=[
      ('file',('<filename>',open('<path to image>','rb'),'image/jpeg'))
    ]
    headers = {
      'Authorization': 'Bearer <api key>',
      'User-Agent': '<your user-agent>'
    }
    
    response = requests.request("POST", url, headers=headers, files=files)
    
    print(response.text)

    Also, check that your images meets the platform requirements

    Let me know if this resolves the issue!

  3. Hello @JoeyS,

    Thanks for posting your question!

    If you're interested in building an extension, you can request OAuth credentials through this form:

    https://partner.squarespace.com/oauth-form

    When you receive the credentials, you can follow the documentation on how to use the Commerce APIs using OAuth 2.0:

    https://developers.squarespace.com/oauth

    What you see on our main page are official extension that have been handpicked by us. If you are interested in a collaboration, first build your extension and get some traction, and Squarespace will eventually reach out to you.

    Let me know if you have any additional questions!

     

  4. Hello @ThisJustin,

    Thanks for posting your question!

    This error is caused by an issue our end, I'm sorry for the trouble. Unfortunately the Development Server does not support the ARM-based architecture your M1 Mac is using.  

    I made a record of this for our Engineering to review, however I do not not currently have an ETA for this implementation.

    Feel free to post in the thread if you have any additional questions!

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.