loops_sdk rust
This is the OpenAPI Spec for the Loops API.
Authentication
use Client;
let client = default.with_api_key;
get_contacts_custom_fields
Retrieve a list of your account's custom contact properties.
use Client;
let client = default
.with_api_key;
let response = client.get_contacts_custom_fields;
get_contacts_find
Search for a contact by email
.
use Client;
use *;
let client = default
.with_api_key;
let response = client
.get_contacts_find;
post_contacts_create
Add a contact to your audience.
use Client;
use *;
use *;
let client = default
.with_api_key;
let response = client
.post_contacts_create;
post_contacts_delete
Delete a contact by email
or userId
.
use Client;
use *;
use *;
let client = default
.with_api_key;
let response = client
.post_contacts_delete;
post_events_send
Send events to trigger emails in Loops.If a contact with the provided email
doesn't exist, one will be created.
use Client;
use *;
use *;
let client = default
.with_api_key;
let response = client
.post_events_send;
post_transactional
Send a transactional email to a contact.
use Client;
use *;
use *;
let client = default
.with_api_key;
let response = client
.post_transactional;
put_contacts_update
Update a contact by email
or userId
.If you want to update a contact’s email address, the contact will first need a userId
value. You can then make a request containing the userId field along with an updated email address.
use Client;
use *;
use *;
let client = default
.with_api_key;
let response = client
.put_contacts_update;