Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File attachement in campains #4

Open
julienvienne opened this issue Jul 25, 2024 · 0 comments
Open

File attachement in campains #4

julienvienne opened this issue Jul 25, 2024 · 0 comments

Comments

@julienvienne
Copy link

Hi,

It is not documented in API description, but it is possible to attach one or more medias to campains uppon creation.
Medias have to be uploaded first, and then you just need to add the media list attibute to the posted data.
Ex :

data = {
   ...
  "media": [1],
   ...
}

It would be very simple to add media_ids parameter to the create_campain() method and add the media ids to the data dictionary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant