Customer loyalty and engagement platform
Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.
The LoyaltyLion API unlocks the potential to create custom loyalty and engagement experiences by integrating with various e-commerce platforms. Harnessing this API through Pipedream allows for automated workflows that can sync customer data, track points and rewards, and personalize marketing efforts based on loyalty insights. With the API, you can automate notifications for point changes, create rules for earning points, and analyze customer behavior to tailor rewards.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
loyaltylion: {
type: "app",
app: "loyaltylion",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.loyaltylion.com/v2/customers`,
headers: {
Authorization: `Bearer ${this.loyaltylion.$auth.oauth_access_token}`,
},
params: {
since_id: `0`,
limit: `2`,
},
})
},
})
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}}