partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
valid
_check_audience
Checks audience field from a JWT payload. Does nothing if the passed in ``audience`` is null. Args: payload_dict: dict, A dictionary containing a JWT payload. audience: string or NoneType, an audience to check for in the JWT payload. Raises: AppIdentityError: If ...
oauth2client/crypt.py
def _check_audience(payload_dict, audience): """Checks audience field from a JWT payload. Does nothing if the passed in ``audience`` is null. Args: payload_dict: dict, A dictionary containing a JWT payload. audience: string or NoneType, an audience to check for in the JWT...
def _check_audience(payload_dict, audience): """Checks audience field from a JWT payload. Does nothing if the passed in ``audience`` is null. Args: payload_dict: dict, A dictionary containing a JWT payload. audience: string or NoneType, an audience to check for in the JWT...
[ "Checks", "audience", "field", "from", "a", "JWT", "payload", "." ]
googleapis/oauth2client
python
https://github.com/googleapis/oauth2client/blob/50d20532a748f18e53f7d24ccbe6647132c979a9/oauth2client/crypt.py#L126-L151
[ "def", "_check_audience", "(", "payload_dict", ",", "audience", ")", ":", "if", "audience", "is", "None", ":", "return", "audience_in_payload", "=", "payload_dict", ".", "get", "(", "'aud'", ")", "if", "audience_in_payload", "is", "None", ":", "raise", "AppIde...
50d20532a748f18e53f7d24ccbe6647132c979a9
valid
_verify_time_range
Verifies the issued at and expiration from a JWT payload. Makes sure the current time (in UTC) falls between the issued at and expiration for the JWT (with some skew allowed for via ``CLOCK_SKEW_SECS``). Args: payload_dict: dict, A dictionary containing a JWT payload. Raises: AppI...
oauth2client/crypt.py
def _verify_time_range(payload_dict): """Verifies the issued at and expiration from a JWT payload. Makes sure the current time (in UTC) falls between the issued at and expiration for the JWT (with some skew allowed for via ``CLOCK_SKEW_SECS``). Args: payload_dict: dict, A dictionary contai...
def _verify_time_range(payload_dict): """Verifies the issued at and expiration from a JWT payload. Makes sure the current time (in UTC) falls between the issued at and expiration for the JWT (with some skew allowed for via ``CLOCK_SKEW_SECS``). Args: payload_dict: dict, A dictionary contai...
[ "Verifies", "the", "issued", "at", "and", "expiration", "from", "a", "JWT", "payload", "." ]
googleapis/oauth2client
python
https://github.com/googleapis/oauth2client/blob/50d20532a748f18e53f7d24ccbe6647132c979a9/oauth2client/crypt.py#L154-L204
[ "def", "_verify_time_range", "(", "payload_dict", ")", ":", "# Get the current time to use throughout.", "now", "=", "int", "(", "time", ".", "time", "(", ")", ")", "# Make sure issued at and expiration are in the payload.", "issued_at", "=", "payload_dict", ".", "get", ...
50d20532a748f18e53f7d24ccbe6647132c979a9
valid
verify_signed_jwt_with_certs
Verify a JWT against public certs. See http://self-issued.info/docs/draft-jones-json-web-token.html. Args: jwt: string, A JWT. certs: dict, Dictionary where values of public keys in PEM format. audience: string, The audience, 'aud', that this JWT should contain. If No...
oauth2client/crypt.py
def verify_signed_jwt_with_certs(jwt, certs, audience=None): """Verify a JWT against public certs. See http://self-issued.info/docs/draft-jones-json-web-token.html. Args: jwt: string, A JWT. certs: dict, Dictionary where values of public keys in PEM format. audience: string, The au...
def verify_signed_jwt_with_certs(jwt, certs, audience=None): """Verify a JWT against public certs. See http://self-issued.info/docs/draft-jones-json-web-token.html. Args: jwt: string, A JWT. certs: dict, Dictionary where values of public keys in PEM format. audience: string, The au...
[ "Verify", "a", "JWT", "against", "public", "certs", "." ]
googleapis/oauth2client
python
https://github.com/googleapis/oauth2client/blob/50d20532a748f18e53f7d24ccbe6647132c979a9/oauth2client/crypt.py#L207-L250
[ "def", "verify_signed_jwt_with_certs", "(", "jwt", ",", "certs", ",", "audience", "=", "None", ")", ":", "jwt", "=", "_helpers", ".", "_to_bytes", "(", "jwt", ")", "if", "jwt", ".", "count", "(", "b'.'", ")", "!=", "2", ":", "raise", "AppIdentityError", ...
50d20532a748f18e53f7d24ccbe6647132c979a9
valid
Templates.get
Get information about a specific template. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = []
mailchimp3/entities/templates.py
def get(self, template_id, **queryparams): """ Get information about a specific template. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams...
def get(self, template_id, **queryparams): """ Get information about a specific template. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams...
[ "Get", "information", "about", "a", "specific", "template", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/templates.py#L77-L88
[ "def", "get", "(", "self", ",", "template_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "template_id", "=", "template_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "template_id", ")",...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Templates.update
Update the name, HTML, or folder_id of an existing template. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "html": str...
mailchimp3/entities/templates.py
def update(self, template_id, data): """ Update the name, HTML, or folder_id of an existing template. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data...
def update(self, template_id, data): """ Update the name, HTML, or folder_id of an existing template. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data...
[ "Update", "the", "name", "HTML", "or", "folder_id", "of", "an", "existing", "template", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/templates.py#L91-L109
[ "def", "update", "(", "self", ",", "template_id", ",", "data", ")", ":", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The template must have a name'", ")", "if", "'html'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The t...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Templates.delete
Delete a specific template. :param template_id: The unique id for the template. :type template_id: :py:class:`str`
mailchimp3/entities/templates.py
def delete(self, template_id): """ Delete a specific template. :param template_id: The unique id for the template. :type template_id: :py:class:`str` """ self.template_id = template_id return self._mc_client._delete(url=self._build_path(template_id))
def delete(self, template_id): """ Delete a specific template. :param template_id: The unique id for the template. :type template_id: :py:class:`str` """ self.template_id = template_id return self._mc_client._delete(url=self._build_path(template_id))
[ "Delete", "a", "specific", "template", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/templates.py#L112-L120
[ "def", "delete", "(", "self", ",", "template_id", ")", ":", "self", ".", "template_id", "=", "template_id", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_build_path", "(", "template_id", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
get_subscriber_hash
The MD5 hash of the lowercase version of the list member's email. Used as subscriber_hash :param member_email: The member's email address :type member_email: :py:class:`str` :returns: The MD5 hash in hex :rtype: :py:class:`str`
mailchimp3/helpers.py
def get_subscriber_hash(member_email): """ The MD5 hash of the lowercase version of the list member's email. Used as subscriber_hash :param member_email: The member's email address :type member_email: :py:class:`str` :returns: The MD5 hash in hex :rtype: :py:class:`str` """ check_em...
def get_subscriber_hash(member_email): """ The MD5 hash of the lowercase version of the list member's email. Used as subscriber_hash :param member_email: The member's email address :type member_email: :py:class:`str` :returns: The MD5 hash in hex :rtype: :py:class:`str` """ check_em...
[ "The", "MD5", "hash", "of", "the", "lowercase", "version", "of", "the", "list", "member", "s", "email", ".", "Used", "as", "subscriber_hash" ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/helpers.py#L17-L30
[ "def", "get_subscriber_hash", "(", "member_email", ")", ":", "check_email", "(", "member_email", ")", "member_email", "=", "member_email", ".", "lower", "(", ")", ".", "encode", "(", ")", "m", "=", "hashlib", ".", "md5", "(", "member_email", ")", "return", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
check_url
Function that verifies that the string passed is a valid url. Original regex author Diego Perini (http://www.iport.it) regex ported to Python by adamrofer (https://github.com/adamrofer) Used under MIT license. :param url: :return: Nothing
mailchimp3/helpers.py
def check_url(url): """ Function that verifies that the string passed is a valid url. Original regex author Diego Perini (http://www.iport.it) regex ported to Python by adamrofer (https://github.com/adamrofer) Used under MIT license. :param url: :return: Nothing """ URL_REGEX = re....
def check_url(url): """ Function that verifies that the string passed is a valid url. Original regex author Diego Perini (http://www.iport.it) regex ported to Python by adamrofer (https://github.com/adamrofer) Used under MIT license. :param url: :return: Nothing """ URL_REGEX = re....
[ "Function", "that", "verifies", "that", "the", "string", "passed", "is", "a", "valid", "url", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/helpers.py#L67-L100
[ "def", "check_url", "(", "url", ")", ":", "URL_REGEX", "=", "re", ".", "compile", "(", "u\"^\"", "u\"(?:(?:https?|ftp)://)\"", "u\"(?:\\S+(?::\\S*)?@)?\"", "u\"(?:\"", "u\"(?!(?:10|127)(?:\\.\\d{1,3}){3})\"", "u\"(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})\"", "u\"(?!172\\.(?:1...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
merge_results
Given two dicts, x and y, merge them into a new dict as a shallow copy. The result only differs from `x.update(y)` in the way that it handles list values when both x and y have list values for the same key. In which case the returned dictionary, z, has a value according to: z[key] = x[key] + z[key] ...
mailchimp3/helpers.py
def merge_results(x, y): """ Given two dicts, x and y, merge them into a new dict as a shallow copy. The result only differs from `x.update(y)` in the way that it handles list values when both x and y have list values for the same key. In which case the returned dictionary, z, has a value according...
def merge_results(x, y): """ Given two dicts, x and y, merge them into a new dict as a shallow copy. The result only differs from `x.update(y)` in the way that it handles list values when both x and y have list values for the same key. In which case the returned dictionary, z, has a value according...
[ "Given", "two", "dicts", "x", "and", "y", "merge", "them", "into", "a", "new", "dict", "as", "a", "shallow", "copy", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/helpers.py#L103-L125
[ "def", "merge_results", "(", "x", ",", "y", ")", ":", "z", "=", "x", ".", "copy", "(", ")", "for", "key", ",", "value", "in", "y", ".", "items", "(", ")", ":", "if", "isinstance", "(", "value", ",", "list", ")", "and", "isinstance", "(", "z", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Lists.create
Create a new list in your MailChimp account. :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "contact": object* { "company": string*, "address1": string*, "city": ...
mailchimp3/entities/lists.py
def create(self, data): """ Create a new list in your MailChimp account. :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "contact": object* { "company": string*, "...
def create(self, data): """ Create a new list in your MailChimp account. :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "contact": object* { "company": string*, "...
[ "Create", "a", "new", "list", "in", "your", "MailChimp", "account", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/lists.py#L47-L113
[ "def", "create", "(", "self", ",", "data", ")", ":", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The list must have a name'", ")", "if", "'contact'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The list must have a contact'"...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Lists.update_members
Batch subscribe or unsubscribe list members. Only the members array is required in the request body parameters. Within the members array, each member requires an email_address and either a status or status_if_new. The update_existing parameter will also be considered required to help pr...
mailchimp3/entities/lists.py
def update_members(self, list_id, data): """ Batch subscribe or unsubscribe list members. Only the members array is required in the request body parameters. Within the members array, each member requires an email_address and either a status or status_if_new. The update_existing ...
def update_members(self, list_id, data): """ Batch subscribe or unsubscribe list members. Only the members array is required in the request body parameters. Within the members array, each member requires an email_address and either a status or status_if_new. The update_existing ...
[ "Batch", "subscribe", "or", "unsubscribe", "list", "members", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/lists.py#L116-L163
[ "def", "update_members", "(", "self", ",", "list_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "if", "'members'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The update must have at least one member'", ")", "else", ":", "if", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Lists.update
Update the settings for a specific list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "contact": object* { ...
mailchimp3/entities/lists.py
def update(self, list_id, data): """ Update the settings for a specific list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, ...
def update(self, list_id, data): """ Update the settings for a specific list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, ...
[ "Update", "the", "settings", "for", "a", "specific", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/lists.py#L208-L272
[ "def", "update", "(", "self", ",", "list_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The list must have a name'", ")", "if", "'contact'", "not", "in", "data", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreOrderLines.create
Add a new line item to an existing order. :param store_id: The store id. :type store_id: :py:class:`str` :param order_id: The id for the order in a store. :type order_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data =...
mailchimp3/entities/storeorderlines.py
def create(self, store_id, order_id, data): """ Add a new line item to an existing order. :param store_id: The store id. :type store_id: :py:class:`str` :param order_id: The id for the order in a store. :type order_id: :py:class:`str` :param data: The request bod...
def create(self, store_id, order_id, data): """ Add a new line item to an existing order. :param store_id: The store id. :type store_id: :py:class:`str` :param order_id: The id for the order in a store. :type order_id: :py:class:`str` :param data: The request bod...
[ "Add", "a", "new", "line", "item", "to", "an", "existing", "order", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storeorderlines.py#L29-L64
[ "def", "create", "(", "self", ",", "store_id", ",", "order_id", ",", "data", ")", ":", "self", ".", "store_id", "=", "store_id", "self", ".", "order_id", "=", "order_id", "if", "'id'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The order line ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Root.get
Get links to all other resources available in the API. :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = []
mailchimp3/entities/root.py
def get(self, **queryparams): """ Get links to all other resources available in the API. :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = [] """ return self._mc_client._get(url=self._build_path(), **queryp...
def get(self, **queryparams): """ Get links to all other resources available in the API. :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = [] """ return self._mc_client._get(url=self._build_path(), **queryp...
[ "Get", "links", "to", "all", "other", "resources", "available", "in", "the", "API", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/root.py#L27-L35
[ "def", "get", "(", "self", ",", "*", "*", "queryparams", ")", ":", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", ")", ",", "*", "*", "queryparams", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AuthorizedApps.create
Retrieve OAuth2-based credentials to associate API calls with your application. :param data: The request body parameters :type data: :py:class:`dict` data = { "client_id": string*, "client_secret": string* }
mailchimp3/entities/authorizedapps.py
def create(self, data): """ Retrieve OAuth2-based credentials to associate API calls with your application. :param data: The request body parameters :type data: :py:class:`dict` data = { "client_id": string*, "client_secret": string* } ...
def create(self, data): """ Retrieve OAuth2-based credentials to associate API calls with your application. :param data: The request body parameters :type data: :py:class:`dict` data = { "client_id": string*, "client_secret": string* } ...
[ "Retrieve", "OAuth2", "-", "based", "credentials", "to", "associate", "API", "calls", "with", "your", "application", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/authorizedapps.py#L27-L44
[ "def", "create", "(", "self", ",", "data", ")", ":", "self", ".", "app_id", "=", "None", "if", "'client_id'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The authorized app must have a client_id'", ")", "if", "'client_secret'", "not", "in", "data", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AuthorizedApps.get
Get information about a specific authorized application :param app_id: The unique id for the connected authorized application :type app_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = []
mailchimp3/entities/authorizedapps.py
def get(self, app_id, **queryparams): """ Get information about a specific authorized application :param app_id: The unique id for the connected authorized application :type app_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [...
def get(self, app_id, **queryparams): """ Get information about a specific authorized application :param app_id: The unique id for the connected authorized application :type app_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [...
[ "Get", "information", "about", "a", "specific", "authorized", "application" ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/authorizedapps.py#L66-L77
[ "def", "get", "(", "self", ",", "app_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "app_id", "=", "app_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "app_id", ")", ",", "*", "*"...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StorePromoRules.create
Add new promo rule to a store :param store_id: The store id :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict' data = { "id": string*, "title": string, "description": string*, "sta...
mailchimp3/entities/storepromorules.py
def create(self, store_id, data): """ Add new promo rule to a store :param store_id: The store id :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict' data = { "id": string*, "title": string...
def create(self, store_id, data): """ Add new promo rule to a store :param store_id: The store id :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict' data = { "id": string*, "title": string...
[ "Add", "new", "promo", "rule", "to", "a", "store" ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storepromorules.py#L25-L59
[ "def", "create", "(", "self", ",", "store_id", ",", "data", ")", ":", "self", ".", "store_id", "=", "store_id", "if", "'id'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The promo rule must have an id'", ")", "if", "'description'", "not", "in", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignFolders.get
Get information about a specific folder used to organize campaigns. :param folder_id: The unique id for the campaign folder. :type folder_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = []
mailchimp3/entities/campaignfolders.py
def get(self, folder_id, **queryparams): """ Get information about a specific folder used to organize campaigns. :param folder_id: The unique id for the campaign folder. :type folder_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'...
def get(self, folder_id, **queryparams): """ Get information about a specific folder used to organize campaigns. :param folder_id: The unique id for the campaign folder. :type folder_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'...
[ "Get", "information", "about", "a", "specific", "folder", "used", "to", "organize", "campaigns", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignfolders.py#L65-L76
[ "def", "get", "(", "self", ",", "folder_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "folder_id", "=", "folder_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "folder_id", ")", ",", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignFolders.delete
Delete a specific campaign folder, and mark all the campaigns in the folder as ‘unfiled’. :param folder_id: The unique id for the campaign folder. :type folder_id: :py:class:`str`
mailchimp3/entities/campaignfolders.py
def delete(self, folder_id): """ Delete a specific campaign folder, and mark all the campaigns in the folder as ‘unfiled’. :param folder_id: The unique id for the campaign folder. :type folder_id: :py:class:`str` """ self.folder_id = folder_id return self...
def delete(self, folder_id): """ Delete a specific campaign folder, and mark all the campaigns in the folder as ‘unfiled’. :param folder_id: The unique id for the campaign folder. :type folder_id: :py:class:`str` """ self.folder_id = folder_id return self...
[ "Delete", "a", "specific", "campaign", "folder", "and", "mark", "all", "the", "campaigns", "in", "the", "folder", "as", "‘unfiled’", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignfolders.py#L97-L106
[ "def", "delete", "(", "self", ",", "folder_id", ")", ":", "self", ".", "folder_id", "=", "folder_id", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_build_path", "(", "folder_id", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationEmails.get
Get information about an individual Automation workflow email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str`
mailchimp3/entities/automationemails.py
def get(self, workflow_id, email_id): """ Get information about an individual Automation workflow email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :t...
def get(self, workflow_id, email_id): """ Get information about an individual Automation workflow email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :t...
[ "Get", "information", "about", "an", "individual", "Automation", "workflow", "email", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationemails.py#L55-L66
[ "def", "get", "(", "self", ",", "workflow_id", ",", "email_id", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "self", ".", "email_id", "=", "email_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_pa...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
FileManagerFiles.create
Upload a new image or file to the File Manager. :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "file_data": string* }
mailchimp3/entities/filemanagerfiles.py
def create(self, data): """ Upload a new image or file to the File Manager. :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "file_data": string* } """ if 'name' not in data: ...
def create(self, data): """ Upload a new image or file to the File Manager. :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "file_data": string* } """ if 'name' not in data: ...
[ "Upload", "a", "new", "image", "or", "file", "to", "the", "File", "Manager", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/filemanagerfiles.py#L28-L48
[ "def", "create", "(", "self", ",", "data", ")", ":", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The file must have a name'", ")", "if", "'file_data'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The file must have file_data...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
FileManagerFiles.get
Get information about a specific file in the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = []
mailchimp3/entities/filemanagerfiles.py
def get(self, file_id, **queryparams): """ Get information about a specific file in the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] ...
def get(self, file_id, **queryparams): """ Get information about a specific file in the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] ...
[ "Get", "information", "about", "a", "specific", "file", "in", "the", "File", "Manager", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/filemanagerfiles.py#L76-L87
[ "def", "get", "(", "self", ",", "file_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "file_id", "=", "file_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "file_id", ")", ",", "*", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
FileManagerFiles.update
Update a file in the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "file_data": string* }
mailchimp3/entities/filemanagerfiles.py
def update(self, file_id, data): """ Update a file in the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": stri...
def update(self, file_id, data): """ Update a file in the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": stri...
[ "Update", "a", "file", "in", "the", "File", "Manager", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/filemanagerfiles.py#L90-L108
[ "def", "update", "(", "self", ",", "file_id", ",", "data", ")", ":", "self", ".", "file_id", "=", "file_id", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The file must have a name'", ")", "if", "'file_data'", "not", "in", "data", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
FileManagerFiles.delete
Remove a specific file from the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str`
mailchimp3/entities/filemanagerfiles.py
def delete(self, file_id): """ Remove a specific file from the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str` """ self.file_id = file_id return self._mc_client._delete(url=self._build_path(file_id))
def delete(self, file_id): """ Remove a specific file from the File Manager. :param file_id: The unique id for the File Manager file. :type file_id: :py:class:`str` """ self.file_id = file_id return self._mc_client._delete(url=self._build_path(file_id))
[ "Remove", "a", "specific", "file", "from", "the", "File", "Manager", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/filemanagerfiles.py#L111-L119
[ "def", "delete", "(", "self", ",", "file_id", ")", ":", "self", ".", "file_id", "=", "file_id", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_build_path", "(", "file_id", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BaseApi._build_path
Build path with endpoint and args :param args: Tokens in the endpoint URL :type args: :py:class:`unicode`
mailchimp3/baseapi.py
def _build_path(self, *args): """ Build path with endpoint and args :param args: Tokens in the endpoint URL :type args: :py:class:`unicode` """ return '/'.join(chain((self.endpoint,), map(str, args)))
def _build_path(self, *args): """ Build path with endpoint and args :param args: Tokens in the endpoint URL :type args: :py:class:`unicode` """ return '/'.join(chain((self.endpoint,), map(str, args)))
[ "Build", "path", "with", "endpoint", "and", "args" ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/baseapi.py#L27-L34
[ "def", "_build_path", "(", "self", ",", "*", "args", ")", ":", "return", "'/'", ".", "join", "(", "chain", "(", "(", "self", ".", "endpoint", ",", ")", ",", "map", "(", "str", ",", "args", ")", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BaseApi._iterate
Iterate over all pages for the given url. Feed in the result of self._build_path as the url. :param url: The url of the endpoint :type url: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = [] query...
mailchimp3/baseapi.py
def _iterate(self, url, **queryparams): """ Iterate over all pages for the given url. Feed in the result of self._build_path as the url. :param url: The url of the endpoint :type url: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] =...
def _iterate(self, url, **queryparams): """ Iterate over all pages for the given url. Feed in the result of self._build_path as the url. :param url: The url of the endpoint :type url: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] =...
[ "Iterate", "over", "all", "pages", "for", "the", "given", "url", ".", "Feed", "in", "the", "result", "of", "self", ".", "_build_path", "as", "the", "url", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/baseapi.py#L36-L73
[ "def", "_iterate", "(", "self", ",", "url", ",", "*", "*", "queryparams", ")", ":", "# fields as a query string parameter should be a string with", "# comma-separated substring values to pass along to", "# self._mc_client._get(). It should also contain total_items whenever", "# the par...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationRemovedSubscribers.create
Remove a subscriber from a specific Automation workflow. You can remove a subscriber at any point in an Automation workflow, regardless of how many emails they’ve been sent from that workflow. Once they’re removed, they can never be added back to the same workflow. :param workflow_id: T...
mailchimp3/entities/automationremovedsubscribers.py
def create(self, workflow_id, data): """ Remove a subscriber from a specific Automation workflow. You can remove a subscriber at any point in an Automation workflow, regardless of how many emails they’ve been sent from that workflow. Once they’re removed, they can never be added ...
def create(self, workflow_id, data): """ Remove a subscriber from a specific Automation workflow. You can remove a subscriber at any point in an Automation workflow, regardless of how many emails they’ve been sent from that workflow. Once they’re removed, they can never be added ...
[ "Remove", "a", "subscriber", "from", "a", "specific", "Automation", "workflow", ".", "You", "can", "remove", "a", "subscriber", "at", "any", "point", "in", "an", "Automation", "workflow", "regardless", "of", "how", "many", "emails", "they’ve", "been", "sent", ...
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationremovedsubscribers.py#L29-L48
[ "def", "create", "(", "self", ",", "workflow_id", ",", "data", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "if", "'email_address'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The automation removed subscriber must have an email_address'", ")...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationRemovedSubscribers.all
Get information about subscribers who were removed from an Automation workflow. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str`
mailchimp3/entities/automationremovedsubscribers.py
def all(self, workflow_id): """ Get information about subscribers who were removed from an Automation workflow. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` """ self.workflow_id = workflow_id return sel...
def all(self, workflow_id): """ Get information about subscribers who were removed from an Automation workflow. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` """ self.workflow_id = workflow_id return sel...
[ "Get", "information", "about", "subscribers", "who", "were", "removed", "from", "an", "Automation", "workflow", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationremovedsubscribers.py#L52-L61
[ "def", "all", "(", "self", ",", "workflow_id", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "workflow_id", ",", "'removed-subscribers'", ")", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListWebhooks.create
Create a new webhook for a specific list. The documentation does not include any required request body parameters but the url parameter is being listed here as a required parameter in documentation and error-checking based on the description of the method :param list_id: The un...
mailchimp3/entities/listwebhooks.py
def create(self, list_id, data): """ Create a new webhook for a specific list. The documentation does not include any required request body parameters but the url parameter is being listed here as a required parameter in documentation and error-checking based on the description ...
def create(self, list_id, data): """ Create a new webhook for a specific list. The documentation does not include any required request body parameters but the url parameter is being listed here as a required parameter in documentation and error-checking based on the description ...
[ "Create", "a", "new", "webhook", "for", "a", "specific", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listwebhooks.py#L28-L54
[ "def", "create", "(", "self", ",", "list_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "if", "'url'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The list webhook must have a url'", ")", "check_url", "(", "data", "[", "'url'...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListWebhooks.get
Get information about a specific webhook. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook. :type webhook_id: :py:class:`str`
mailchimp3/entities/listwebhooks.py
def get(self, list_id, webhook_id): """ Get information about a specific webhook. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook. :type webhook_id: :py:class:`str` """ self.list_...
def get(self, list_id, webhook_id): """ Get information about a specific webhook. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook. :type webhook_id: :py:class:`str` """ self.list_...
[ "Get", "information", "about", "a", "specific", "webhook", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listwebhooks.py#L69-L80
[ "def", "get", "(", "self", ",", "list_id", ",", "webhook_id", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "webhook_id", "=", "webhook_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListWebhooks.update
Update the settings for an existing webhook. :param list_id: The unique id for the list :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook :type webhook_id: :py:class:`str`
mailchimp3/entities/listwebhooks.py
def update(self, list_id, webhook_id, data): """ Update the settings for an existing webhook. :param list_id: The unique id for the list :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook :type webhook_id: :py:class:`str` """ ...
def update(self, list_id, webhook_id, data): """ Update the settings for an existing webhook. :param list_id: The unique id for the list :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook :type webhook_id: :py:class:`str` """ ...
[ "Update", "the", "settings", "for", "an", "existing", "webhook", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listwebhooks.py#L83-L94
[ "def", "update", "(", "self", ",", "list_id", ",", "webhook_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "webhook_id", "=", "webhook_id", "return", "self", ".", "_mc_client", ".", "_patch", "(", "url", "=", "self", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListWebhooks.delete
Delete a specific webhook in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook. :type webhook_id: :py:class:`str`
mailchimp3/entities/listwebhooks.py
def delete(self, list_id, webhook_id): """ Delete a specific webhook in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook. :type webhook_id: :py:class:`str` """ self.list_id...
def delete(self, list_id, webhook_id): """ Delete a specific webhook in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param webhook_id: The unique id for the webhook. :type webhook_id: :py:class:`str` """ self.list_id...
[ "Delete", "a", "specific", "webhook", "in", "a", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listwebhooks.py#L97-L108
[ "def", "delete", "(", "self", ",", "list_id", ",", "webhook_id", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "webhook_id", "=", "webhook_id", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_build_pa...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Segments.all
returns the first 10 segments for a specific list.
mailchimp3/entities/segments.py
def all(self, list_id, **queryparams): """ returns the first 10 segments for a specific list. """ return self._mc_client._get(url=self._build_path(list_id, 'segments'), **queryparams)
def all(self, list_id, **queryparams): """ returns the first 10 segments for a specific list. """ return self._mc_client._get(url=self._build_path(list_id, 'segments'), **queryparams)
[ "returns", "the", "first", "10", "segments", "for", "a", "specific", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/segments.py#L11-L15
[ "def", "all", "(", "self", ",", "list_id", ",", "*", "*", "queryparams", ")", ":", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "list_id", ",", "'segments'", ")", ",", "*", "*", "queryparams", ")...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Segments.get
returns the specified list segment.
mailchimp3/entities/segments.py
def get(self, list_id, segment_id): """ returns the specified list segment. """ return self._mc_client._get(url=self._build_path(list_id, 'segments', segment_id))
def get(self, list_id, segment_id): """ returns the specified list segment. """ return self._mc_client._get(url=self._build_path(list_id, 'segments', segment_id))
[ "returns", "the", "specified", "list", "segment", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/segments.py#L17-L21
[ "def", "get", "(", "self", ",", "list_id", ",", "segment_id", ")", ":", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "list_id", ",", "'segments'", ",", "segment_id", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Segments.update
updates an existing list segment.
mailchimp3/entities/segments.py
def update(self, list_id, segment_id, data): """ updates an existing list segment. """ return self._mc_client._patch(url=self._build_path(list_id, 'segments', segment_id), data=data)
def update(self, list_id, segment_id, data): """ updates an existing list segment. """ return self._mc_client._patch(url=self._build_path(list_id, 'segments', segment_id), data=data)
[ "updates", "an", "existing", "list", "segment", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/segments.py#L23-L27
[ "def", "update", "(", "self", ",", "list_id", ",", "segment_id", ",", "data", ")", ":", "return", "self", ".", "_mc_client", ".", "_patch", "(", "url", "=", "self", ".", "_build_path", "(", "list_id", ",", "'segments'", ",", "segment_id", ")", ",", "da...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Segments.delete
removes an existing list segment from the list. This cannot be undone.
mailchimp3/entities/segments.py
def delete(self, list_id, segment_id): """ removes an existing list segment from the list. This cannot be undone. """ return self._mc_client._delete(url=self._build_path(list_id, 'segments', segment_id))
def delete(self, list_id, segment_id): """ removes an existing list segment from the list. This cannot be undone. """ return self._mc_client._delete(url=self._build_path(list_id, 'segments', segment_id))
[ "removes", "an", "existing", "list", "segment", "from", "the", "list", ".", "This", "cannot", "be", "undone", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/segments.py#L29-L33
[ "def", "delete", "(", "self", ",", "list_id", ",", "segment_id", ")", ":", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_build_path", "(", "list_id", ",", "'segments'", ",", "segment_id", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Segments.create
adds a new segment to the list.
mailchimp3/entities/segments.py
def create(self, list_id, data): """ adds a new segment to the list. """ return self._mc_client._post(url=self._build_path(list_id, 'segments'), data=data)
def create(self, list_id, data): """ adds a new segment to the list. """ return self._mc_client._post(url=self._build_path(list_id, 'segments'), data=data)
[ "adds", "a", "new", "segment", "to", "the", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/segments.py#L35-L39
[ "def", "create", "(", "self", ",", "list_id", ",", "data", ")", ":", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build_path", "(", "list_id", ",", "'segments'", ")", ",", "data", "=", "data", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
MailChimpClient._post
Handle authenticated POST requests :param url: The url for the endpoint including path parameters :type url: :py:class:`str` :param data: The request body parameters :type data: :py:data:`none` or :py:class:`dict` :returns: The JSON output from the API or an error message
mailchimp3/mailchimpclient.py
def _post(self, url, data=None): """ Handle authenticated POST requests :param url: The url for the endpoint including path parameters :type url: :py:class:`str` :param data: The request body parameters :type data: :py:data:`none` or :py:class:`dict` :returns: Th...
def _post(self, url, data=None): """ Handle authenticated POST requests :param url: The url for the endpoint including path parameters :type url: :py:class:`str` :param data: The request body parameters :type data: :py:data:`none` or :py:class:`dict` :returns: Th...
[ "Handle", "authenticated", "POST", "requests" ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/mailchimpclient.py#L101-L134
[ "def", "_post", "(", "self", ",", "url", ",", "data", "=", "None", ")", ":", "url", "=", "urljoin", "(", "self", ".", "base_url", ",", "url", ")", "try", ":", "r", "=", "self", ".", "_make_request", "(", "*", "*", "dict", "(", "method", "=", "'...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
MailChimpOAuth.get_metadata
Get the metadata returned after authentication
mailchimp3/mailchimpclient.py
def get_metadata(self): """ Get the metadata returned after authentication """ try: r = requests.get('https://login.mailchimp.com/oauth2/metadata', auth=self) except requests.exceptions.RequestException as e: raise e else: r.raise_for_s...
def get_metadata(self): """ Get the metadata returned after authentication """ try: r = requests.get('https://login.mailchimp.com/oauth2/metadata', auth=self) except requests.exceptions.RequestException as e: raise e else: r.raise_for_s...
[ "Get", "the", "metadata", "returned", "after", "authentication" ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/mailchimpclient.py#L286-L299
[ "def", "get_metadata", "(", "self", ")", ":", "try", ":", "r", "=", "requests", ".", "get", "(", "'https://login.mailchimp.com/oauth2/metadata'", ",", "auth", "=", "self", ")", "except", "requests", ".", "exceptions", ".", "RequestException", "as", "e", ":", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignContent.update
Set the content for a campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict`
mailchimp3/entities/campaigncontent.py
def update(self, campaign_id, data): """ Set the content for a campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` """ self.campaign_id = ca...
def update(self, campaign_id, data): """ Set the content for a campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` """ self.campaign_id = ca...
[ "Set", "the", "content", "for", "a", "campaign", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaigncontent.py#L41-L51
[ "def", "update", "(", "self", ",", "campaign_id", ",", "data", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "return", "self", ".", "_mc_client", ".", "_put", "(", "url", "=", "self", ".", "_build_path", "(", "campaign_id", ",", "'content'", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Conversations.get
Get details about an individual conversation. :param conversation_id: The unique id for the conversation. :type conversation_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = []
mailchimp3/entities/conversations.py
def get(self, conversation_id, **queryparams): """ Get details about an individual conversation. :param conversation_id: The unique id for the conversation. :type conversation_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] ...
def get(self, conversation_id, **queryparams): """ Get details about an individual conversation. :param conversation_id: The unique id for the conversation. :type conversation_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] ...
[ "Get", "details", "about", "an", "individual", "conversation", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/conversations.py#L55-L66
[ "def", "get", "(", "self", ",", "conversation_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "conversation_id", "=", "conversation_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "conversa...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ReportUnsubscribes.all
Get information about members who have unsubscribed from a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param get_all: Should the query get all results :type get_all: :py:class:`bool` :param queryparams: The q...
mailchimp3/entities/reportunsubscribes.py
def all(self, campaign_id, get_all=False, **queryparams): """ Get information about members who have unsubscribed from a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param get_all: Should the query get all res...
def all(self, campaign_id, get_all=False, **queryparams): """ Get information about members who have unsubscribed from a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param get_all: Should the query get all res...
[ "Get", "information", "about", "members", "who", "have", "unsubscribed", "from", "a", "specific", "campaign", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/reportunsubscribes.py#L25-L45
[ "def", "all", "(", "self", ",", "campaign_id", ",", "get_all", "=", "False", ",", "*", "*", "queryparams", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "self", ".", "subscriber_hash", "=", "None", "if", "get_all", ":", "return", "self", ".",...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
TemplateDefaultContent.all
Get the sections that you can edit in a template, including each section’s default content. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['excl...
mailchimp3/entities/templatedefaultcontent.py
def all(self, template_id, **queryparams): """ Get the sections that you can edit in a template, including each section’s default content. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param queryparams: The query string paramete...
def all(self, template_id, **queryparams): """ Get the sections that you can edit in a template, including each section’s default content. :param template_id: The unique id for the template. :type template_id: :py:class:`str` :param queryparams: The query string paramete...
[ "Get", "the", "sections", "that", "you", "can", "edit", "in", "a", "template", "including", "each", "section’s", "default", "content", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/templatedefaultcontent.py#L26-L38
[ "def", "all", "(", "self", ",", "template_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "template_id", "=", "template_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "template_id", ",",...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationEmailQueues.create
Manually add a subscriber to a workflow, bypassing the default trigger settings. You can also use this endpoint to trigger a series of automated emails in an API 3.0 workflow type or add subscribers to an automated email queue that uses the API request delay type. :param workflow_id: Th...
mailchimp3/entities/automationemailqueues.py
def create(self, workflow_id, email_id, data): """ Manually add a subscriber to a workflow, bypassing the default trigger settings. You can also use this endpoint to trigger a series of automated emails in an API 3.0 workflow type or add subscribers to an automated email queue th...
def create(self, workflow_id, email_id, data): """ Manually add a subscriber to a workflow, bypassing the default trigger settings. You can also use this endpoint to trigger a series of automated emails in an API 3.0 workflow type or add subscribers to an automated email queue th...
[ "Manually", "add", "a", "subscriber", "to", "a", "workflow", "bypassing", "the", "default", "trigger", "settings", ".", "You", "can", "also", "use", "this", "endpoint", "to", "trigger", "a", "series", "of", "automated", "emails", "in", "an", "API", "3", "....
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationemailqueues.py#L31-L61
[ "def", "create", "(", "self", ",", "workflow_id", ",", "email_id", ",", "data", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "self", ".", "email_id", "=", "email_id", "if", "'email_address'", "not", "in", "data", ":", "raise", "KeyError", "(",...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationEmailQueues.all
Get information about an Automation email queue. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str`
mailchimp3/entities/automationemailqueues.py
def all(self, workflow_id, email_id): """ Get information about an Automation email queue. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: ...
def all(self, workflow_id, email_id): """ Get information about an Automation email queue. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: ...
[ "Get", "information", "about", "an", "Automation", "email", "queue", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationemailqueues.py#L65-L77
[ "def", "all", "(", "self", ",", "workflow_id", ",", "email_id", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "self", ".", "email_id", "=", "email_id", "self", ".", "subscriber_hash", "=", "None", "return", "self", ".", "_mc_client", ".", "_get...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationEmailQueues.get
Get information about a specific subscriber in an Automation email queue. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str` :...
mailchimp3/entities/automationemailqueues.py
def get(self, workflow_id, email_id, subscriber_hash): """ Get information about a specific subscriber in an Automation email queue. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the A...
def get(self, workflow_id, email_id, subscriber_hash): """ Get information about a specific subscriber in an Automation email queue. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the A...
[ "Get", "information", "about", "a", "specific", "subscriber", "in", "an", "Automation", "email", "queue", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationemailqueues.py#L81-L98
[ "def", "get", "(", "self", ",", "workflow_id", ",", "email_id", ",", "subscriber_hash", ")", ":", "subscriber_hash", "=", "check_subscriber_hash", "(", "subscriber_hash", ")", "self", ".", "workflow_id", "=", "workflow_id", "self", ".", "email_id", "=", "email_i...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignActions.cancel
Cancel a Regular or Plain-Text Campaign after you send, before all of your recipients receive it. This feature is included with MailChimp Pro. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str`
mailchimp3/entities/campaignactions.py
def cancel(self, campaign_id): """ Cancel a Regular or Plain-Text Campaign after you send, before all of your recipients receive it. This feature is included with MailChimp Pro. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` ...
def cancel(self, campaign_id): """ Cancel a Regular or Plain-Text Campaign after you send, before all of your recipients receive it. This feature is included with MailChimp Pro. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` ...
[ "Cancel", "a", "Regular", "or", "Plain", "-", "Text", "Campaign", "after", "you", "send", "before", "all", "of", "your", "recipients", "receive", "it", ".", "This", "feature", "is", "included", "with", "MailChimp", "Pro", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignactions.py#L31-L41
[ "def", "cancel", "(", "self", ",", "campaign_id", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build_path", "(", "campaign_id", ",", "'actions/cancel-send'", ")",...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignActions.pause
Pause an RSS-Driven campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str`
mailchimp3/entities/campaignactions.py
def pause(self, campaign_id): """ Pause an RSS-Driven campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._post(url=self._build_path(campaign_id, 'actions/pause...
def pause(self, campaign_id): """ Pause an RSS-Driven campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._post(url=self._build_path(campaign_id, 'actions/pause...
[ "Pause", "an", "RSS", "-", "Driven", "campaign", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignactions.py#L44-L52
[ "def", "pause", "(", "self", ",", "campaign_id", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build_path", "(", "campaign_id", ",", "'actions/pause'", ")", ")" ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignActions.replicate
Replicate a campaign in saved or send status. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str`
mailchimp3/entities/campaignactions.py
def replicate(self, campaign_id): """ Replicate a campaign in saved or send status. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._post(url=self._build_path(campaig...
def replicate(self, campaign_id): """ Replicate a campaign in saved or send status. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._post(url=self._build_path(campaig...
[ "Replicate", "a", "campaign", "in", "saved", "or", "send", "status", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignactions.py#L55-L63
[ "def", "replicate", "(", "self", ",", "campaign_id", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build_path", "(", "campaign_id", ",", "'actions/replicate'", ")"...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignActions.resume
Resume an RSS-Driven campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str`
mailchimp3/entities/campaignactions.py
def resume(self, campaign_id): """ Resume an RSS-Driven campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._post(url=self._build_path(campaign_id, 'actions/res...
def resume(self, campaign_id): """ Resume an RSS-Driven campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._post(url=self._build_path(campaign_id, 'actions/res...
[ "Resume", "an", "RSS", "-", "Driven", "campaign", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignactions.py#L66-L74
[ "def", "resume", "(", "self", ",", "campaign_id", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build_path", "(", "campaign_id", ",", "'actions/resume'", ")", ")...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignActions.schedule
Schedule a campaign for delivery. If you’re using Multivariate Campaigns to test send times or sending RSS Campaigns, use the send action instead. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters ...
mailchimp3/entities/campaignactions.py
def schedule(self, campaign_id, data): """ Schedule a campaign for delivery. If you’re using Multivariate Campaigns to test send times or sending RSS Campaigns, use the send action instead. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:...
def schedule(self, campaign_id, data): """ Schedule a campaign for delivery. If you’re using Multivariate Campaigns to test send times or sending RSS Campaigns, use the send action instead. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:...
[ "Schedule", "a", "campaign", "for", "delivery", ".", "If", "you’re", "using", "Multivariate", "Campaigns", "to", "test", "send", "times", "or", "sending", "RSS", "Campaigns", "use", "the", "send", "action", "instead", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignactions.py#L77-L103
[ "def", "schedule", "(", "self", ",", "campaign_id", ",", "data", ")", ":", "if", "not", "data", "[", "'schedule_time'", "]", ":", "raise", "ValueError", "(", "'You must supply a schedule_time'", ")", "else", ":", "if", "data", "[", "'schedule_time'", "]", "....
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignActions.send
Send a MailChimp campaign. For RSS Campaigns, the campaign will send according to its schedule. All other campaigns will send immediately. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str`
mailchimp3/entities/campaignactions.py
def send(self, campaign_id): """ Send a MailChimp campaign. For RSS Campaigns, the campaign will send according to its schedule. All other campaigns will send immediately. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ ...
def send(self, campaign_id): """ Send a MailChimp campaign. For RSS Campaigns, the campaign will send according to its schedule. All other campaigns will send immediately. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ ...
[ "Send", "a", "MailChimp", "campaign", ".", "For", "RSS", "Campaigns", "the", "campaign", "will", "send", "according", "to", "its", "schedule", ".", "All", "other", "campaigns", "will", "send", "immediately", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignactions.py#L106-L115
[ "def", "send", "(", "self", ",", "campaign_id", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build_path", "(", "campaign_id", ",", "'actions/send'", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignActions.unschedule
Unschedule a scheduled campaign that hasn’t started sending. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str`
mailchimp3/entities/campaignactions.py
def unschedule(self, campaign_id): """ Unschedule a scheduled campaign that hasn’t started sending. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._post(url=self._bu...
def unschedule(self, campaign_id): """ Unschedule a scheduled campaign that hasn’t started sending. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._post(url=self._bu...
[ "Unschedule", "a", "scheduled", "campaign", "that", "hasn’t", "started", "sending", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignactions.py#L139-L147
[ "def", "unschedule", "(", "self", ",", "campaign_id", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build_path", "(", "campaign_id", ",", "'actions/unschedule'", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreCustomers.create
Add a new customer to a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "id": string*, "email_address": string*, "opt_in_status": boolean* ...
mailchimp3/entities/storecustomers.py
def create(self, store_id, data): """ Add a new customer to a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "id": string*, "email_addres...
def create(self, store_id, data): """ Add a new customer to a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "id": string*, "email_addres...
[ "Add", "a", "new", "customer", "to", "a", "store", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storecustomers.py#L31-L60
[ "def", "create", "(", "self", ",", "store_id", ",", "data", ")", ":", "self", ".", "store_id", "=", "store_id", "if", "'id'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The store customer must have an id'", ")", "if", "'email_address'", "not", "in...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreCustomers.get
Get information about a specific customer. :param store_id: The store id. :type store_id: :py:class:`str` :param customer_id: The id for the customer of a store. :type customer_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = []...
mailchimp3/entities/storecustomers.py
def get(self, store_id, customer_id, **queryparams): """ Get information about a specific customer. :param store_id: The store id. :type store_id: :py:class:`str` :param customer_id: The id for the customer of a store. :type customer_id: :py:class:`str` :param qu...
def get(self, store_id, customer_id, **queryparams): """ Get information about a specific customer. :param store_id: The store id. :type store_id: :py:class:`str` :param customer_id: The id for the customer of a store. :type customer_id: :py:class:`str` :param qu...
[ "Get", "information", "about", "a", "specific", "customer", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storecustomers.py#L86-L100
[ "def", "get", "(", "self", ",", "store_id", ",", "customer_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "store_id", "=", "store_id", "self", ".", "customer_id", "=", "customer_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url"...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreCustomers.create_or_update
Add or update a customer. :param store_id: The store id. :type store_id: :py:class:`str` :param customer_id: The id for the customer of a store. :type customer_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { ...
mailchimp3/entities/storecustomers.py
def create_or_update(self, store_id, customer_id, data): """ Add or update a customer. :param store_id: The store id. :type store_id: :py:class:`str` :param customer_id: The id for the customer of a store. :type customer_id: :py:class:`str` :param data: The reque...
def create_or_update(self, store_id, customer_id, data): """ Add or update a customer. :param store_id: The store id. :type store_id: :py:class:`str` :param customer_id: The id for the customer of a store. :type customer_id: :py:class:`str` :param data: The reque...
[ "Add", "or", "update", "a", "customer", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storecustomers.py#L119-L146
[ "def", "create_or_update", "(", "self", ",", "store_id", ",", "customer_id", ",", "data", ")", ":", "self", ".", "store_id", "=", "store_id", "self", ".", "customer_id", "=", "customer_id", "if", "'id'", "not", "in", "data", ":", "raise", "KeyError", "(", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreProductVariants.create_or_update
Add or update a product variant. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` :param variant_id: The id for the product variant. :type variant_id: :py:class:`str` ...
mailchimp3/entities/storeproductvariants.py
def create_or_update(self, store_id, product_id, variant_id, data): """ Add or update a product variant. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` :param ...
def create_or_update(self, store_id, product_id, variant_id, data): """ Add or update a product variant. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` :param ...
[ "Add", "or", "update", "a", "product", "variant", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storeproductvariants.py#L132-L159
[ "def", "create_or_update", "(", "self", ",", "store_id", ",", "product_id", ",", "variant_id", ",", "data", ")", ":", "self", ".", "store_id", "=", "store_id", "self", ".", "product_id", "=", "product_id", "self", ".", "variant_id", "=", "variant_id", "if", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignFeedback.create
Add feedback on a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "message": string* } :param queryparams: The que...
mailchimp3/entities/campaignfeedback.py
def create(self, campaign_id, data, **queryparams): """ Add feedback on a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { ...
def create(self, campaign_id, data, **queryparams): """ Add feedback on a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { ...
[ "Add", "feedback", "on", "a", "specific", "campaign", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignfeedback.py#L28-L51
[ "def", "create", "(", "self", ",", "campaign_id", ",", "data", ",", "*", "*", "queryparams", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "if", "'message'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The campaign feedback must have a me...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
CampaignFeedback.update
Update a specific feedback message for a campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param feedback_id: The unique id for the feedback message. :type feedback_id: :py:class:`str` :param data: The request body parameters ...
mailchimp3/entities/campaignfeedback.py
def update(self, campaign_id, feedback_id, data): """ Update a specific feedback message for a campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param feedback_id: The unique id for the feedback message. :type feedback_id: ...
def update(self, campaign_id, feedback_id, data): """ Update a specific feedback message for a campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param feedback_id: The unique id for the feedback message. :type feedback_id: ...
[ "Update", "a", "specific", "feedback", "message", "for", "a", "campaign", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaignfeedback.py#L92-L110
[ "def", "update", "(", "self", ",", "campaign_id", ",", "feedback_id", ",", "data", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "self", ".", "feedback_id", "=", "feedback_id", "if", "'message'", "not", "in", "data", ":", "raise", "KeyError", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMergeFields.create
Add a new merge field for a specific list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, "type": string* }
mailchimp3/entities/listmergefields.py
def create(self, list_id, data): """ Add a new merge field for a specific list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, ...
def create(self, list_id, data): """ Add a new merge field for a specific list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string*, ...
[ "Add", "a", "new", "merge", "field", "for", "a", "specific", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmergefields.py#L27-L50
[ "def", "create", "(", "self", ",", "list_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The list merge field must have a name'", ")", "if", "'type'", "not", "in", "d...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMergeFields.get
Get information about a specific merge field in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param merge_id: The id for the merge field. :type merge_id: :py:class:`str`
mailchimp3/entities/listmergefields.py
def get(self, list_id, merge_id): """ Get information about a specific merge field in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param merge_id: The id for the merge field. :type merge_id: :py:class:`str` """ self....
def get(self, list_id, merge_id): """ Get information about a specific merge field in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param merge_id: The id for the merge field. :type merge_id: :py:class:`str` """ self....
[ "Get", "information", "about", "a", "specific", "merge", "field", "in", "a", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmergefields.py#L77-L88
[ "def", "get", "(", "self", ",", "list_id", ",", "merge_id", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "merge_id", "=", "merge_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BatchWebhooks.get
Get information about a specific batch webhook. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = []
mailchimp3/entities/batchwebhooks.py
def get(self, batch_webhook_id, **queryparams): """ Get information about a specific batch webhook. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields']...
def get(self, batch_webhook_id, **queryparams): """ Get information about a specific batch webhook. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields']...
[ "Get", "information", "about", "a", "specific", "batch", "webhook", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/batchwebhooks.py#L65-L76
[ "def", "get", "(", "self", ",", "batch_webhook_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "batch_webhook_id", "=", "batch_webhook_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "batch...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BatchWebhooks.update
Update a webhook that will fire whenever any batch request completes processing. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { ...
mailchimp3/entities/batchwebhooks.py
def update(self, batch_webhook_id, data): """ Update a webhook that will fire whenever any batch request completes processing. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str` :param data: The request body parameters ...
def update(self, batch_webhook_id, data): """ Update a webhook that will fire whenever any batch request completes processing. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str` :param data: The request body parameters ...
[ "Update", "a", "webhook", "that", "will", "fire", "whenever", "any", "batch", "request", "completes", "processing", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/batchwebhooks.py#L79-L95
[ "def", "update", "(", "self", ",", "batch_webhook_id", ",", "data", ")", ":", "self", ".", "batch_webhook_id", "=", "batch_webhook_id", "if", "'url'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The batch webhook must have a valid url'", ")", "return", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BatchWebhooks.delete
Remove a batch webhook. Webhooks will no longer be sent to the given URL. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str`
mailchimp3/entities/batchwebhooks.py
def delete(self, batch_webhook_id): """ Remove a batch webhook. Webhooks will no longer be sent to the given URL. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str` """ self.batch_webhook_id = batch_webhook_id ...
def delete(self, batch_webhook_id): """ Remove a batch webhook. Webhooks will no longer be sent to the given URL. :param batch_webhook_id: The unique id for the batch webhook. :type batch_webhook_id: :py:class:`str` """ self.batch_webhook_id = batch_webhook_id ...
[ "Remove", "a", "batch", "webhook", ".", "Webhooks", "will", "no", "longer", "be", "sent", "to", "the", "given", "URL", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/batchwebhooks.py#L98-L107
[ "def", "delete", "(", "self", ",", "batch_webhook_id", ")", ":", "self", ".", "batch_webhook_id", "=", "batch_webhook_id", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_build_path", "(", "batch_webhook_id", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMemberActivity.all
Get the last 50 events of a member’s activity on a specific list, including opens, clicks, and unsubscribes. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email addr...
mailchimp3/entities/listmemberactivity.py
def all(self, list_id, subscriber_hash, **queryparams): """ Get the last 50 events of a member’s activity on a specific list, including opens, clicks, and unsubscribes. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The...
def all(self, list_id, subscriber_hash, **queryparams): """ Get the last 50 events of a member’s activity on a specific list, including opens, clicks, and unsubscribes. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The...
[ "Get", "the", "last", "50", "events", "of", "a", "member’s", "activity", "on", "a", "specific", "list", "including", "opens", "clicks", "and", "unsubscribes", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmemberactivity.py#L28-L45
[ "def", "all", "(", "self", ",", "list_id", ",", "subscriber_hash", ",", "*", "*", "queryparams", ")", ":", "subscriber_hash", "=", "check_subscriber_hash", "(", "subscriber_hash", ")", "self", ".", "list_id", "=", "list_id", "self", ".", "subscriber_hash", "="...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Stores.create
Add a new store to your MailChimp account. Error checking on the currency code verifies that it is in the correct three-letter, all-caps format as specified by ISO 4217 but does not check that it is a valid code as the list of valid codes changes over time. :param data: The req...
mailchimp3/entities/stores.py
def create(self, data): """ Add a new store to your MailChimp account. Error checking on the currency code verifies that it is in the correct three-letter, all-caps format as specified by ISO 4217 but does not check that it is a valid code as the list of valid codes changes over...
def create(self, data): """ Add a new store to your MailChimp account. Error checking on the currency code verifies that it is in the correct three-letter, all-caps format as specified by ISO 4217 but does not check that it is a valid code as the list of valid codes changes over...
[ "Add", "a", "new", "store", "to", "your", "MailChimp", "account", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/stores.py#L37-L70
[ "def", "create", "(", "self", ",", "data", ")", ":", "if", "'id'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The store must have an id'", ")", "if", "'list_id'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The store must have a list_id'",...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Stores.update
Update a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict`
mailchimp3/entities/stores.py
def update(self, store_id, data): """ Update a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` """ self.store_id = store_id return self._mc_client._patch(u...
def update(self, store_id, data): """ Update a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` """ self.store_id = store_id return self._mc_client._patch(u...
[ "Update", "a", "store", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/stores.py#L106-L116
[ "def", "update", "(", "self", ",", "store_id", ",", "data", ")", ":", "self", ".", "store_id", "=", "store_id", "return", "self", ".", "_mc_client", ".", "_patch", "(", "url", "=", "self", ".", "_build_path", "(", "store_id", ")", ",", "data", "=", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreProductImages.create
Add a new image to the product. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { ...
mailchimp3/entities/storeproductimages.py
def create(self, store_id, product_id, data): """ Add a new image to the product. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` :param data: The request body ...
def create(self, store_id, product_id, data): """ Add a new image to the product. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` :param data: The request body ...
[ "Add", "a", "new", "image", "to", "the", "product", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storeproductimages.py#L28-L54
[ "def", "create", "(", "self", ",", "store_id", ",", "product_id", ",", "data", ")", ":", "self", ".", "store_id", "=", "store_id", "self", ".", "product_id", "=", "product_id", "if", "'id'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The produ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreProductImages.all
Get information about a product’s images. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` :param get_all: Should the query get all results :type get_all: :py:class:`boo...
mailchimp3/entities/storeproductimages.py
def all(self, store_id, product_id, get_all=False, **queryparams): """ Get information about a product’s images. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` ...
def all(self, store_id, product_id, get_all=False, **queryparams): """ Get information about a product’s images. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` ...
[ "Get", "information", "about", "a", "product’s", "images", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storeproductimages.py#L57-L79
[ "def", "all", "(", "self", ",", "store_id", ",", "product_id", ",", "get_all", "=", "False", ",", "*", "*", "queryparams", ")", ":", "self", ".", "store_id", "=", "store_id", "self", ".", "product_id", "=", "product_id", "self", ".", "image_id", "=", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreProductImages.get
Get information about a specific product image. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` :param image_id: The id for the product image. :type image_id: :py:class...
mailchimp3/entities/storeproductimages.py
def get(self, store_id, product_id, image_id, **queryparams): """ Get information about a specific product image. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` ...
def get(self, store_id, product_id, image_id, **queryparams): """ Get information about a specific product image. :param store_id: The store id. :type store_id: :py:class:`str` :param product_id: The id for the product of a store. :type product_id: :py:class:`str` ...
[ "Get", "information", "about", "a", "specific", "product", "image", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storeproductimages.py#L82-L102
[ "def", "get", "(", "self", ",", "store_id", ",", "product_id", ",", "image_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "store_id", "=", "store_id", "self", ".", "product_id", "=", "product_id", "self", ".", "image_id", "=", "image_id", "ret...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ConversationMessages.create
Post a new message to a conversation. :param conversation_id: The unique id for the conversation. :type conversation_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "from_email": string*, "read": boolean*...
mailchimp3/entities/conversationmessages.py
def create(self, conversation_id, data): """ Post a new message to a conversation. :param conversation_id: The unique id for the conversation. :type conversation_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { ...
def create(self, conversation_id, data): """ Post a new message to a conversation. :param conversation_id: The unique id for the conversation. :type conversation_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { ...
[ "Post", "a", "new", "message", "to", "a", "conversation", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/conversationmessages.py#L31-L57
[ "def", "create", "(", "self", ",", "conversation_id", ",", "data", ")", ":", "self", ".", "conversation_id", "=", "conversation_id", "if", "'from_email'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The conversation message must have a from_email'", ")", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreOrders.create
Add a new order to a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "id": string*, "customer": object* { "'id": string* ...
mailchimp3/entities/storeorders.py
def create(self, store_id, data): """ Add a new order to a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "id": string*, "customer": obje...
def create(self, store_id, data): """ Add a new order to a store. :param store_id: The store id. :type store_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "id": string*, "customer": obje...
[ "Add", "a", "new", "order", "to", "a", "store", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storeorders.py#L50-L109
[ "def", "create", "(", "self", ",", "store_id", ",", "data", ")", ":", "self", ".", "store_id", "=", "store_id", "if", "'id'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The order must have an id'", ")", "if", "'customer'", "not", "in", "data", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMemberNotes.create
Add a new note for a specific subscriber. The documentation lists only the note request body parameter so it is being documented and error-checked as if it were required based on the description of the method. :param list_id: The unique id for the list. :type list_id: :py:class...
mailchimp3/entities/listmembernotes.py
def create(self, list_id, subscriber_hash, data): """ Add a new note for a specific subscriber. The documentation lists only the note request body parameter so it is being documented and error-checked as if it were required based on the description of the method. :param...
def create(self, list_id, subscriber_hash, data): """ Add a new note for a specific subscriber. The documentation lists only the note request body parameter so it is being documented and error-checked as if it were required based on the description of the method. :param...
[ "Add", "a", "new", "note", "for", "a", "specific", "subscriber", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmembernotes.py#L29-L58
[ "def", "create", "(", "self", ",", "list_id", ",", "subscriber_hash", ",", "data", ")", ":", "subscriber_hash", "=", "check_subscriber_hash", "(", "subscriber_hash", ")", "self", ".", "list_id", "=", "list_id", "self", ".", "subscriber_hash", "=", "subscriber_ha...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMemberTags.update
Update tags for a specific subscriber. The documentation lists only the tags request body parameter so it is being documented and error-checked as if it were required based on the description of the method. The data list needs to include a "status" key. This determines if the t...
mailchimp3/entities/listmembertags.py
def update(self, list_id, subscriber_hash, data): """ Update tags for a specific subscriber. The documentation lists only the tags request body parameter so it is being documented and error-checked as if it were required based on the description of the method. The data ...
def update(self, list_id, subscriber_hash, data): """ Update tags for a specific subscriber. The documentation lists only the tags request body parameter so it is being documented and error-checked as if it were required based on the description of the method. The data ...
[ "Update", "tags", "for", "a", "specific", "subscriber", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmembertags.py#L28-L63
[ "def", "update", "(", "self", ",", "list_id", ",", "subscriber_hash", ",", "data", ")", ":", "subscriber_hash", "=", "check_subscriber_hash", "(", "subscriber_hash", ")", "self", ".", "list_id", "=", "list_id", "self", ".", "subscriber_hash", "=", "subscriber_ha...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListSegments.update
Update a specific segment in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param segment_id: The unique id for the segment. :type segment_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` ...
mailchimp3/entities/listsegments.py
def update(self, list_id, segment_id, data): """ Update a specific segment in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param segment_id: The unique id for the segment. :type segment_id: :py:class:`str` :param data: The r...
def update(self, list_id, segment_id, data): """ Update a specific segment in a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param segment_id: The unique id for the segment. :type segment_id: :py:class:`str` :param data: The r...
[ "Update", "a", "specific", "segment", "in", "a", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listsegments.py#L98-L116
[ "def", "update", "(", "self", ",", "list_id", ",", "segment_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "segment_id", "=", "segment_id", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The list s...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListSegments.update_members
Batch add/remove list members to static segment. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param segment_id: The unique id for the segment. :type segment_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:...
mailchimp3/entities/listsegments.py
def update_members(self, list_id, segment_id, data): """ Batch add/remove list members to static segment. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param segment_id: The unique id for the segment. :type segment_id: :py:class:`str` ...
def update_members(self, list_id, segment_id, data): """ Batch add/remove list members to static segment. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param segment_id: The unique id for the segment. :type segment_id: :py:class:`str` ...
[ "Batch", "add", "/", "remove", "list", "members", "to", "static", "segment", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listsegments.py#L119-L136
[ "def", "update_members", "(", "self", ",", "list_id", ",", "segment_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "segment_id", "=", "segment_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "sel...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListInterestCategoryInterest.create
Create a new interest or ‘group name’ for a specific category. The documentation lists only the name request body parameter so it is being documented and error-checked as if it were required based on the description of the method. :param list_id: The unique id for the list. :ty...
mailchimp3/entities/listinterestcategoryinterest.py
def create(self, list_id, category_id, data): """ Create a new interest or ‘group name’ for a specific category. The documentation lists only the name request body parameter so it is being documented and error-checked as if it were required based on the description of the method...
def create(self, list_id, category_id, data): """ Create a new interest or ‘group name’ for a specific category. The documentation lists only the name request body parameter so it is being documented and error-checked as if it were required based on the description of the method...
[ "Create", "a", "new", "interest", "or", "‘group", "name’", "for", "a", "specific", "category", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listinterestcategoryinterest.py#L30-L60
[ "def", "create", "(", "self", ",", "list_id", ",", "category_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "category_id", "=", "category_id", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The lis...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListInterestCategoryInterest.update
Update interests or ‘group names’ for a specific category. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param category_id: The unique id for the interest category. :type category_id: :py:class:`str` :param interest_id: The specific interest or ‘gro...
mailchimp3/entities/listinterestcategoryinterest.py
def update(self, list_id, category_id, interest_id, data): """ Update interests or ‘group names’ for a specific category. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param category_id: The unique id for the interest category. :type categor...
def update(self, list_id, category_id, interest_id, data): """ Update interests or ‘group names’ for a specific category. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param category_id: The unique id for the interest category. :type categor...
[ "Update", "interests", "or", "‘group", "names’", "for", "a", "specific", "category", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listinterestcategoryinterest.py#L114-L138
[ "def", "update", "(", "self", ",", "list_id", ",", "category_id", ",", "interest_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "category_id", "=", "category_id", "self", ".", "interest_id", "=", "interest_id", "if", "'nam...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListGrowthHistory.get
Get a summary of a specific list’s growth activity for a specific month and year. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param month: A specific month of list growth history. :type month: :py:class:`str` :param queryparams: The query string p...
mailchimp3/entities/listgrowthhistory.py
def get(self, list_id, month, **queryparams): """ Get a summary of a specific list’s growth activity for a specific month and year. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param month: A specific month of list growth history. :type mon...
def get(self, list_id, month, **queryparams): """ Get a summary of a specific list’s growth activity for a specific month and year. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param month: A specific month of list growth history. :type mon...
[ "Get", "a", "summary", "of", "a", "specific", "list’s", "growth", "activity", "for", "a", "specific", "month", "and", "year", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listgrowthhistory.py#L49-L63
[ "def", "get", "(", "self", ",", "list_id", ",", "month", ",", "*", "*", "queryparams", ")", ":", "self", ".", "list_id", "=", "list_id", "self", ".", "month", "=", "month", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
TemplateFolders.update
Update a specific folder used to organize templates. :param folder_id: The unique id for the File Manager folder. :type folder_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "name": string* }
mailchimp3/entities/templatefolders.py
def update(self, folder_id, data): """ Update a specific folder used to organize templates. :param folder_id: The unique id for the File Manager folder. :type folder_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = ...
def update(self, folder_id, data): """ Update a specific folder used to organize templates. :param folder_id: The unique id for the File Manager folder. :type folder_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = ...
[ "Update", "a", "specific", "folder", "used", "to", "organize", "templates", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/templatefolders.py#L79-L94
[ "def", "update", "(", "self", ",", "folder_id", ",", "data", ")", ":", "if", "'name'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The template folder must have a name'", ")", "self", ".", "folder_id", "=", "folder_id", "return", "self", ".", "_mc_...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMembers.create
Add a new member to the list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "status": string*, (Must be one of 'subscribed', 'unsubscribed', 'cleaned', ...
mailchimp3/entities/listmembers.py
def create(self, list_id, data): """ Add a new member to the list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "status": string*, (Must be on...
def create(self, list_id, data): """ Add a new member to the list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "status": string*, (Must be on...
[ "Add", "a", "new", "member", "to", "the", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmembers.py#L35-L63
[ "def", "create", "(", "self", ",", "list_id", ",", "data", ")", ":", "self", ".", "list_id", "=", "list_id", "if", "'status'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The list member must have a status'", ")", "if", "data", "[", "'status'", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMembers.update
Update information for a specific list member. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email address. :type subscriber_hash: :py:class:`str` :param d...
mailchimp3/entities/listmembers.py
def update(self, list_id, subscriber_hash, data): """ Update information for a specific list member. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email ad...
def update(self, list_id, subscriber_hash, data): """ Update information for a specific list member. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email ad...
[ "Update", "information", "for", "a", "specific", "list", "member", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmembers.py#L119-L134
[ "def", "update", "(", "self", ",", "list_id", ",", "subscriber_hash", ",", "data", ")", ":", "subscriber_hash", "=", "check_subscriber_hash", "(", "subscriber_hash", ")", "self", ".", "list_id", "=", "list_id", "self", ".", "subscriber_hash", "=", "subscriber_ha...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMembers.create_or_update
Add or update a list member. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email address. :type subscriber_hash: :py:class:`str` :param data: The request b...
mailchimp3/entities/listmembers.py
def create_or_update(self, list_id, subscriber_hash, data): """ Add or update a list member. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email address. ...
def create_or_update(self, list_id, subscriber_hash, data): """ Add or update a list member. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email address. ...
[ "Add", "or", "update", "a", "list", "member", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmembers.py#L137-L165
[ "def", "create_or_update", "(", "self", ",", "list_id", ",", "subscriber_hash", ",", "data", ")", ":", "subscriber_hash", "=", "check_subscriber_hash", "(", "subscriber_hash", ")", "self", ".", "list_id", "=", "list_id", "self", ".", "subscriber_hash", "=", "sub...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMembers.delete
Delete a member from a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email address. :type subscriber_hash: :py:class:`str`
mailchimp3/entities/listmembers.py
def delete(self, list_id, subscriber_hash): """ Delete a member from a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email address. :type subsc...
def delete(self, list_id, subscriber_hash): """ Delete a member from a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email address. :type subsc...
[ "Delete", "a", "member", "from", "a", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmembers.py#L168-L181
[ "def", "delete", "(", "self", ",", "list_id", ",", "subscriber_hash", ")", ":", "subscriber_hash", "=", "check_subscriber_hash", "(", "subscriber_hash", ")", "self", ".", "list_id", "=", "list_id", "self", ".", "subscriber_hash", "=", "subscriber_hash", "return", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
ListMembers.delete_permanent
Delete permanently a member from a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email address. :type subscriber_hash: :py:class:`str`
mailchimp3/entities/listmembers.py
def delete_permanent(self, list_id, subscriber_hash): """ Delete permanently a member from a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email addres...
def delete_permanent(self, list_id, subscriber_hash): """ Delete permanently a member from a list. :param list_id: The unique id for the list. :type list_id: :py:class:`str` :param subscriber_hash: The MD5 hash of the lowercase version of the list member’s email addres...
[ "Delete", "permanently", "a", "member", "from", "a", "list", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/listmembers.py#L183-L196
[ "def", "delete_permanent", "(", "self", ",", "list_id", ",", "subscriber_hash", ")", ":", "subscriber_hash", "=", "check_subscriber_hash", "(", "subscriber_hash", ")", "self", ".", "list_id", "=", "list_id", "self", ".", "subscriber_hash", "=", "subscriber_hash", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Automations.get
Get a summary of an individual Automation workflow’s settings and content. The trigger_settings object returns information for the first email in the workflow. :param workflow_id: The unique id for the Automation workflow :type workflow_id: :py:class:`str` :param queryparams: th...
mailchimp3/entities/automations.py
def get(self, workflow_id, **queryparams): """ Get a summary of an individual Automation workflow’s settings and content. The trigger_settings object returns information for the first email in the workflow. :param workflow_id: The unique id for the Automation workflow :t...
def get(self, workflow_id, **queryparams): """ Get a summary of an individual Automation workflow’s settings and content. The trigger_settings object returns information for the first email in the workflow. :param workflow_id: The unique id for the Automation workflow :t...
[ "Get", "a", "summary", "of", "an", "individual", "Automation", "workflow’s", "settings", "and", "content", ".", "The", "trigger_settings", "object", "returns", "information", "for", "the", "first", "email", "in", "the", "workflow", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automations.py#L55-L68
[ "def", "get", "(", "self", ",", "workflow_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", "_build_path", "(", "workflow_id", ")",...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationEmailActions.pause
Pause an automated email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str`
mailchimp3/entities/automationemailactions.py
def pause(self, workflow_id, email_id): """ Pause an automated email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str` ...
def pause(self, workflow_id, email_id): """ Pause an automated email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str` ...
[ "Pause", "an", "automated", "email", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationemailactions.py#L29-L40
[ "def", "pause", "(", "self", ",", "workflow_id", ",", "email_id", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "self", ".", "email_id", "=", "email_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationEmailActions.start
Start an automated email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str`
mailchimp3/entities/automationemailactions.py
def start(self, workflow_id, email_id): """ Start an automated email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str` ...
def start(self, workflow_id, email_id): """ Start an automated email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str` ...
[ "Start", "an", "automated", "email", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationemailactions.py#L44-L55
[ "def", "start", "(", "self", ",", "workflow_id", ",", "email_id", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "self", ".", "email_id", "=", "email_id", "return", "self", ".", "_mc_client", ".", "_post", "(", "url", "=", "self", ".", "_build...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
AutomationEmailActions.delete
Removes an individual Automation workflow email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_id: :py:class:`str`
mailchimp3/entities/automationemailactions.py
def delete(self, workflow_id, email_id): """ Removes an individual Automation workflow email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_i...
def delete(self, workflow_id, email_id): """ Removes an individual Automation workflow email. :param workflow_id: The unique id for the Automation workflow. :type workflow_id: :py:class:`str` :param email_id: The unique id for the Automation workflow email. :type email_i...
[ "Removes", "an", "individual", "Automation", "workflow", "email", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/automationemailactions.py#L58-L70
[ "def", "delete", "(", "self", ",", "workflow_id", ",", "email_id", ")", ":", "self", ".", "workflow_id", "=", "workflow_id", "self", ".", "email_id", "=", "email_id", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_bu...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Campaigns.create
Create a new MailChimp campaign. The ValueError raised by an invalid type in data does not mention 'absplit' as a potential value because the documentation indicates that the absplit type has been deprecated. :param data: The request body parameters :type data: :py:class:`dict`...
mailchimp3/entities/campaigns.py
def create(self, data): """ Create a new MailChimp campaign. The ValueError raised by an invalid type in data does not mention 'absplit' as a potential value because the documentation indicates that the absplit type has been deprecated. :param data: The request body par...
def create(self, data): """ Create a new MailChimp campaign. The ValueError raised by an invalid type in data does not mention 'absplit' as a potential value because the documentation indicates that the absplit type has been deprecated. :param data: The request body par...
[ "Create", "a", "new", "MailChimp", "campaign", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaigns.py#L36-L106
[ "def", "create", "(", "self", ",", "data", ")", ":", "if", "'recipients'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The campaign must have recipients'", ")", "if", "'list_id'", "not", "in", "data", "[", "'recipients'", "]", ":", "raise", "KeyErr...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Campaigns.update
Update some or all of the settings for a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data = { "settings": object* { ...
mailchimp3/entities/campaigns.py
def update(self, campaign_id, data): """ Update some or all of the settings for a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data ...
def update(self, campaign_id, data): """ Update some or all of the settings for a specific campaign. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` :param data: The request body parameters :type data: :py:class:`dict` data ...
[ "Update", "some", "or", "all", "of", "the", "settings", "for", "a", "specific", "campaign", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaigns.py#L159-L186
[ "def", "update", "(", "self", ",", "campaign_id", ",", "data", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "if", "'settings'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The campaign must have settings'", ")", "if", "'subject_line'", "...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
Campaigns.delete
Remove a campaign from your MailChimp account. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str`
mailchimp3/entities/campaigns.py
def delete(self, campaign_id): """ Remove a campaign from your MailChimp account. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._delete(url=self._build_path(campaig...
def delete(self, campaign_id): """ Remove a campaign from your MailChimp account. :param campaign_id: The unique id for the campaign. :type campaign_id: :py:class:`str` """ self.campaign_id = campaign_id return self._mc_client._delete(url=self._build_path(campaig...
[ "Remove", "a", "campaign", "from", "your", "MailChimp", "account", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/campaigns.py#L189-L197
[ "def", "delete", "(", "self", ",", "campaign_id", ")", ":", "self", ".", "campaign_id", "=", "campaign_id", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_build_path", "(", "campaign_id", ")", ")" ]
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
StoreCartLines.delete
Delete a cart. :param store_id: The store id. :type store_id: :py:class:`str` :param cart_id: The id for the cart. :type cart_id: :py:class:`str` :param line_id: The id for the line item of a cart. :type line_id: :py:class:`str`
mailchimp3/entities/storecartlines.py
def delete(self, store_id, cart_id, line_id): """ Delete a cart. :param store_id: The store id. :type store_id: :py:class:`str` :param cart_id: The id for the cart. :type cart_id: :py:class:`str` :param line_id: The id for the line item of a cart. :type l...
def delete(self, store_id, cart_id, line_id): """ Delete a cart. :param store_id: The store id. :type store_id: :py:class:`str` :param cart_id: The id for the cart. :type cart_id: :py:class:`str` :param line_id: The id for the line item of a cart. :type l...
[ "Delete", "a", "cart", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/storecartlines.py#L131-L145
[ "def", "delete", "(", "self", ",", "store_id", ",", "cart_id", ",", "line_id", ")", ":", "self", ".", "store_id", "=", "store_id", "self", ".", "cart_id", "=", "cart_id", "self", ".", "line_id", "=", "line_id", "return", "self", ".", "_mc_client", ".", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BatchOperations.create
Begin processing a batch operations request. :param data: The request body parameters :type data: :py:class:`dict` data = { "operations": array* [ { "method": string* (Must be one of "GET", "POST", "PUT", "PATCH", or "DELETE") ...
mailchimp3/entities/batchoperations.py
def create(self, data): """ Begin processing a batch operations request. :param data: The request body parameters :type data: :py:class:`dict` data = { "operations": array* [ { "method": string* (Must be one of "GET", "...
def create(self, data): """ Begin processing a batch operations request. :param data: The request body parameters :type data: :py:class:`dict` data = { "operations": array* [ { "method": string* (Must be one of "GET", "...
[ "Begin", "processing", "a", "batch", "operations", "request", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/batchoperations.py#L27-L53
[ "def", "create", "(", "self", ",", "data", ")", ":", "if", "'operations'", "not", "in", "data", ":", "raise", "KeyError", "(", "'The batch must have operations'", ")", "for", "op", "in", "data", "[", "'operations'", "]", ":", "if", "'method'", "not", "in",...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BatchOperations.all
Get a summary of batch requests that have been made. :param get_all: Should the query get all results :type get_all: :py:class:`bool` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = [] queryparams['count'] = inte...
mailchimp3/entities/batchoperations.py
def all(self, get_all=False, **queryparams): """ Get a summary of batch requests that have been made. :param get_all: Should the query get all results :type get_all: :py:class:`bool` :param queryparams: The query string parameters queryparams['fields'] = [] query...
def all(self, get_all=False, **queryparams): """ Get a summary of batch requests that have been made. :param get_all: Should the query get all results :type get_all: :py:class:`bool` :param queryparams: The query string parameters queryparams['fields'] = [] query...
[ "Get", "a", "summary", "of", "batch", "requests", "that", "have", "been", "made", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/batchoperations.py#L56-L73
[ "def", "all", "(", "self", ",", "get_all", "=", "False", ",", "*", "*", "queryparams", ")", ":", "self", ".", "batch_id", "=", "None", "self", ".", "operation_status", "=", "None", "if", "get_all", ":", "return", "self", ".", "_iterate", "(", "url", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BatchOperations.get
Get the status of a batch request. :param batch_id: The unique id for the batch operation. :type batch_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_fields'] = []
mailchimp3/entities/batchoperations.py
def get(self, batch_id, **queryparams): """ Get the status of a batch request. :param batch_id: The unique id for the batch operation. :type batch_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_...
def get(self, batch_id, **queryparams): """ Get the status of a batch request. :param batch_id: The unique id for the batch operation. :type batch_id: :py:class:`str` :param queryparams: The query string parameters queryparams['fields'] = [] queryparams['exclude_...
[ "Get", "the", "status", "of", "a", "batch", "request", "." ]
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/batchoperations.py#L76-L88
[ "def", "get", "(", "self", ",", "batch_id", ",", "*", "*", "queryparams", ")", ":", "self", ".", "batch_id", "=", "batch_id", "self", ".", "operation_status", "=", "None", "return", "self", ".", "_mc_client", ".", "_get", "(", "url", "=", "self", ".", ...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
BatchOperations.delete
Stops a batch request from running. Since only one batch request is run at a time, this can be used to cancel a long running request. The results of any completed operations will not be available after this call. :param batch_id: The unique id for the batch operation. :type batc...
mailchimp3/entities/batchoperations.py
def delete(self, batch_id): """ Stops a batch request from running. Since only one batch request is run at a time, this can be used to cancel a long running request. The results of any completed operations will not be available after this call. :param batch_id: The uniqu...
def delete(self, batch_id): """ Stops a batch request from running. Since only one batch request is run at a time, this can be used to cancel a long running request. The results of any completed operations will not be available after this call. :param batch_id: The uniqu...
[ "Stops", "a", "batch", "request", "from", "running", ".", "Since", "only", "one", "batch", "request", "is", "run", "at", "a", "time", "this", "can", "be", "used", "to", "cancel", "a", "long", "running", "request", ".", "The", "results", "of", "any", "c...
VingtCinq/python-mailchimp
python
https://github.com/VingtCinq/python-mailchimp/blob/1b472f1b64fdde974732ac4b7ed48908bb707260/mailchimp3/entities/batchoperations.py#L91-L103
[ "def", "delete", "(", "self", ",", "batch_id", ")", ":", "self", ".", "batch_id", "=", "batch_id", "self", ".", "operation_status", "=", "None", "return", "self", ".", "_mc_client", ".", "_delete", "(", "url", "=", "self", ".", "_build_path", "(", "batch...
1b472f1b64fdde974732ac4b7ed48908bb707260
valid
_reformat_policy
Policies returned from boto3 are massive, ugly, and difficult to read. This method flattens and reformats the policy. :param policy: Result from invoking describe_load_balancer_policies(...) :return: Returns a tuple containing policy_name and the reformatted policy dict.
cloudaux/orchestration/aws/elb.py
def _reformat_policy(policy): """ Policies returned from boto3 are massive, ugly, and difficult to read. This method flattens and reformats the policy. :param policy: Result from invoking describe_load_balancer_policies(...) :return: Returns a tuple containing policy_name and the reformatted policy...
def _reformat_policy(policy): """ Policies returned from boto3 are massive, ugly, and difficult to read. This method flattens and reformats the policy. :param policy: Result from invoking describe_load_balancer_policies(...) :return: Returns a tuple containing policy_name and the reformatted policy...
[ "Policies", "returned", "from", "boto3", "are", "massive", "ugly", "and", "difficult", "to", "read", ".", "This", "method", "flattens", "and", "reformats", "the", "policy", "." ]
Netflix-Skunkworks/cloudaux
python
https://github.com/Netflix-Skunkworks/cloudaux/blob/c4b0870c3ac68b1c69e71d33cf78b6a8bdf437ea/cloudaux/orchestration/aws/elb.py#L10-L57
[ "def", "_reformat_policy", "(", "policy", ")", ":", "policy_name", "=", "policy", "[", "'PolicyName'", "]", "ret", "=", "{", "}", "ret", "[", "'type'", "]", "=", "policy", "[", "'PolicyTypeName'", "]", "attrs", "=", "policy", "[", "'PolicyAttributeDescriptio...
c4b0870c3ac68b1c69e71d33cf78b6a8bdf437ea
valid
_flatten_listener
from { "Listener": { "InstancePort": 80, "LoadBalancerPort": 80, "Protocol": "HTTP", "InstanceProtocol": "HTTP" }, "PolicyNames": [] }, to { "InstancePort": 80, "LoadBalancerPort": 80, "Protocol": "HTTP", "InstanceProto...
cloudaux/orchestration/aws/elb.py
def _flatten_listener(listener): """ from { "Listener": { "InstancePort": 80, "LoadBalancerPort": 80, "Protocol": "HTTP", "InstanceProtocol": "HTTP" }, "PolicyNames": [] }, to { "InstancePort": 80, "LoadBalancerPort": 80, ...
def _flatten_listener(listener): """ from { "Listener": { "InstancePort": 80, "LoadBalancerPort": 80, "Protocol": "HTTP", "InstanceProtocol": "HTTP" }, "PolicyNames": [] }, to { "InstancePort": 80, "LoadBalancerPort": 80, ...
[ "from" ]
Netflix-Skunkworks/cloudaux
python
https://github.com/Netflix-Skunkworks/cloudaux/blob/c4b0870c3ac68b1c69e71d33cf78b6a8bdf437ea/cloudaux/orchestration/aws/elb.py#L60-L90
[ "def", "_flatten_listener", "(", "listener", ")", ":", "result", "=", "dict", "(", ")", "if", "set", "(", "listener", ".", "keys", "(", ")", ")", "==", "set", "(", "[", "'Listener'", ",", "'PolicyNames'", "]", ")", ":", "result", ".", "update", "(", ...
c4b0870c3ac68b1c69e71d33cf78b6a8bdf437ea
valid
get_load_balancer
Fully describes an ELB. :param loadbalancer: Could be an ELB Name or a dictionary. Likely the return value from a previous call to describe_load_balancers. At a minimum, must contain a key titled 'LoadBalancerName'. :param flags: Flags describing which sections should be included in the return value. Default i...
cloudaux/orchestration/aws/elb.py
def get_load_balancer(load_balancer, flags=FLAGS.ALL ^ FLAGS.POLICY_TYPES, **conn): """ Fully describes an ELB. :param loadbalancer: Could be an ELB Name or a dictionary. Likely the return value from a previous call to describe_load_balancers. At a minimum, must contain a key titled 'LoadBalancerName'. ...
def get_load_balancer(load_balancer, flags=FLAGS.ALL ^ FLAGS.POLICY_TYPES, **conn): """ Fully describes an ELB. :param loadbalancer: Could be an ELB Name or a dictionary. Likely the return value from a previous call to describe_load_balancers. At a minimum, must contain a key titled 'LoadBalancerName'. ...
[ "Fully", "describes", "an", "ELB", "." ]
Netflix-Skunkworks/cloudaux
python
https://github.com/Netflix-Skunkworks/cloudaux/blob/c4b0870c3ac68b1c69e71d33cf78b6a8bdf437ea/cloudaux/orchestration/aws/elb.py#L167-L184
[ "def", "get_load_balancer", "(", "load_balancer", ",", "flags", "=", "FLAGS", ".", "ALL", "^", "FLAGS", ".", "POLICY_TYPES", ",", "*", "*", "conn", ")", ":", "# Python 2 and 3 support:", "try", ":", "basestring", "except", "NameError", "as", "_", ":", "bases...
c4b0870c3ac68b1c69e71d33cf78b6a8bdf437ea