Website Builder
Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.
Squarespace's API provides a means to interface programmatically with your Squarespace site, allowing for a plethora of automation opportunities such as manipulating inventory, modifying site content, and syncing data with third-party services. When combined with Pipedream, this can translate into powerful workflows that streamline operations, enhance customer engagement, and keep various platforms in sync with your Squarespace data in real-time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
squarespace: {
type: "app",
app: "squarespace",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.squarespace.com/1.0/authorization/website`,
headers: {
Authorization: `Bearer ${this.squarespace.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.
This includes installing PyPI packages, within your code without having to manage a requirements.txt
file or running pip
.
Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:
def handler(pd: "pipedream"):
# Reference data from previous steps
print(pd.steps["trigger"]["context"]["id"])
# Return data for use in future steps
return {"foo": {"test":True}}