//[[restapi:start|RESTful API]]// ====== User Blacklisted ====== ==== Overview ==== Show if an user is in the black list ==== URL ==== Http access method: GET Parameters on the following URL are inside braces { } {base_url}/rest/api/isUserInBlackList/{instanceId}/{mobilenumber}/{shortcode}/{publicKey}/{signature} ^ Parameter Name ^ Description ^ | instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | | mobilenumber | The mobile number to search in the blacklist. | | shortcode | Long or short code to search. //If you don't have one assigned yet please contact our support team trough our [[misc:otto|ticketing tool]] to request one.// Use -1 to add the mobile number in all Long or short codes of the instance. | | publicKey | The public key to access this API. //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | | signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] | ==== Response ==== The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts. exitsUserInBlackList OK Completed true 1 == Result parameters == Please be aware that the **////** tag and its content is a generic object and may apply to other responses in other methods. ^ Parameter Name ^ Description ^ Possible Values ^ | userBlackList.text | Mobile number added in the blackList | String | | userBlackList.blackListType | The blacklist type. If the user is not in the black list, this tag will no appear | See our [[restapi:appx_blacklist_status#blacklist|Blacklist Status]] page | ====== Add User to blacklist ====== ==== Overview ==== Allows add a user into the blacklist ==== URL ==== Http access method: POST Parameters on the following URL are inside braces { } {base_url}/rest/api/addUserToBlackList/{instanceId}/{mobilenumber}/{shortcode}/{blackListType}/{text}/{publicKey}/{signature} ^ Parameter Name ^ Description ^ | instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | | mobilenumber | The mobile number to add in the blacklist. | | shortcode | Long or short code to add the mobile number. //If you don't have one assigned yet please contact our support team trough our [[misc:otto|ticketing tool]] to request one.// Use -1 to add the mobile number in all Long or short codes of the instance. | | blackListType | User 1 to MO, 2 to MT and 3 for both types. | | text | Comment about insertion. | | publicKey | The public key to access this API. //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | | signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] | ==== Response ==== The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts. addUserToBlackList OK Completed 123456789 DEVELOPMENT 1 23-09-2016 09:57:07 == Result parameters == Please be aware that the **////** tag and its content is a generic object and may apply to other responses in other methods. ^ Parameter Name ^ Description ^ Possible Values ^ | userBlackList.mobilenumber | Mobile number added in the blackList | String | | userBlackList.shortcode | Long or Shortcode where the mobile number was added | String | | userBlackList.date | Date when the number was added to the black list | Date | | userBlackList.blackListType | The blacklist type. | See our [[restapi:appx_blacklist_status#blacklist|Blacklist Status]] page | ====== Remove User From Blacklist ====== ==== Overview ==== Removes an user from the blacklist for a given shortcode ==== URL ==== Http access method: GET Parameters on the following URL are inside braces { } {base_url}/rest/api/removeUserFromBlackList/{instanceId}/{mobilenumber}/{shortcode}/{publicKey}/{signature} ^ Parameter Name ^ Description ^ | instanceId | An **instance id** is the workspace identification number, //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | | mobilenumber | The mobile number to be removed from the blacklist. | | shortcode | Long or short code related to the blacklist. | | publicKey | The public key to access this API. //if you don't know yours please request it using our [[misc:otto|ticketing tool]], you will need to provide your Mobile Engagement Campaign Manager's URL and your user login// | | signature | The unique [[restapi:appx_ciphering#SHA256 - Cipher|SHA256]] signature for this call, it's involve all input parameters. To learn about generating the correct signature please visit our [[restapi:appx_call_ex|Java Example]] | ==== Response ==== The Response XML is divided in a static part and a dynamic one, we call it dynamic because it will vary depending on the method you invoke. Please read our [[restapi:appx_resp_xml|Response XML Basics]] section if you want to learn more about the response parts. removeUserFromBlackList OK Completed 123456789 DEVELOPMENT 1 == Result parameters == Please be aware that the **////** tag and its content is a generic object and may apply to other responses in other methods. ^ Parameter Name ^ Description ^ Possible Values ^ | userBlackList.mobilenumber | Mobile number removed from the blackList | String | | userBlackList.shortcode | Long or Shortcode where the mobile number was removed | String | | userBlackList.blackListType | The blacklist type. | See our [[restapi:appx_blacklist_status#blacklist|Blacklist Status]] page |