class-Mandrill_Webhooks.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta name="generator" content="ApiGen 2.8.0" />
  6. <title>Class Mandrill_Webhooks</title>
  7. <script type="text/javascript" src="resources/combined.js?394153670"></script>
  8. <script type="text/javascript" src="elementlist.js?882160656"></script>
  9. <link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
  10. </head>
  11. <body>
  12. <div id="left">
  13. <div id="menu">
  14. <a href="index.html" title="Overview"><span>Overview</span></a>
  15. <div id="groups">
  16. <h3>Namespaces</h3>
  17. <ul>
  18. <li class="active"><a href="namespace-None.html">None</a>
  19. </li>
  20. <li><a href="namespace-PHP.html">PHP</a>
  21. </li>
  22. </ul>
  23. </div>
  24. <hr />
  25. <div id="elements">
  26. <h3>Classes</h3>
  27. <ul>
  28. <li><a href="class-Mandrill.html">Mandrill</a></li>
  29. <li><a href="class-Mandrill_Exports.html">Mandrill_Exports</a></li>
  30. <li><a href="class-Mandrill_Inbound.html">Mandrill_Inbound</a></li>
  31. <li><a href="class-Mandrill_Internal.html">Mandrill_Internal</a></li>
  32. <li><a href="class-Mandrill_Ips.html">Mandrill_Ips</a></li>
  33. <li><a href="class-Mandrill_Messages.html">Mandrill_Messages</a></li>
  34. <li><a href="class-Mandrill_Metadata.html">Mandrill_Metadata</a></li>
  35. <li><a href="class-Mandrill_Rejects.html">Mandrill_Rejects</a></li>
  36. <li><a href="class-Mandrill_Senders.html">Mandrill_Senders</a></li>
  37. <li><a href="class-Mandrill_Subaccounts.html">Mandrill_Subaccounts</a></li>
  38. <li><a href="class-Mandrill_Tags.html">Mandrill_Tags</a></li>
  39. <li><a href="class-Mandrill_Templates.html">Mandrill_Templates</a></li>
  40. <li><a href="class-Mandrill_Urls.html">Mandrill_Urls</a></li>
  41. <li><a href="class-Mandrill_Users.html">Mandrill_Users</a></li>
  42. <li class="active"><a href="class-Mandrill_Webhooks.html">Mandrill_Webhooks</a></li>
  43. <li><a href="class-Mandrill_Whitelists.html">Mandrill_Whitelists</a></li>
  44. </ul>
  45. <h3>Exceptions</h3>
  46. <ul>
  47. <li><a href="class-Mandrill_Error.html">Mandrill_Error</a></li>
  48. <li><a href="class-Mandrill_HttpError.html">Mandrill_HttpError</a></li>
  49. <li><a href="class-Mandrill_Invalid_CustomDNS.html">Mandrill_Invalid_CustomDNS</a></li>
  50. <li><a href="class-Mandrill_Invalid_CustomDNSPending.html">Mandrill_Invalid_CustomDNSPending</a></li>
  51. <li><a href="class-Mandrill_Invalid_DeleteDefaultPool.html">Mandrill_Invalid_DeleteDefaultPool</a></li>
  52. <li><a href="class-Mandrill_Invalid_DeleteNonEmptyPool.html">Mandrill_Invalid_DeleteNonEmptyPool</a></li>
  53. <li><a href="class-Mandrill_Invalid_EmptyDefaultPool.html">Mandrill_Invalid_EmptyDefaultPool</a></li>
  54. <li><a href="class-Mandrill_Invalid_Key.html">Mandrill_Invalid_Key</a></li>
  55. <li><a href="class-Mandrill_Invalid_Reject.html">Mandrill_Invalid_Reject</a></li>
  56. <li><a href="class-Mandrill_Invalid_Tag_Name.html">Mandrill_Invalid_Tag_Name</a></li>
  57. <li><a href="class-Mandrill_Invalid_Template.html">Mandrill_Invalid_Template</a></li>
  58. <li><a href="class-Mandrill_IP_ProvisionLimit.html">Mandrill_IP_ProvisionLimit</a></li>
  59. <li><a href="class-Mandrill_Metadata_FieldLimit.html">Mandrill_Metadata_FieldLimit</a></li>
  60. <li><a href="class-Mandrill_NoSendingHistory.html">Mandrill_NoSendingHistory</a></li>
  61. <li><a href="class-Mandrill_PaymentRequired.html">Mandrill_PaymentRequired</a></li>
  62. <li><a href="class-Mandrill_PoorReputation.html">Mandrill_PoorReputation</a></li>
  63. <li><a href="class-Mandrill_ServiceUnavailable.html">Mandrill_ServiceUnavailable</a></li>
  64. <li><a href="class-Mandrill_Unknown_Export.html">Mandrill_Unknown_Export</a></li>
  65. <li><a href="class-Mandrill_Unknown_InboundDomain.html">Mandrill_Unknown_InboundDomain</a></li>
  66. <li><a href="class-Mandrill_Unknown_InboundRoute.html">Mandrill_Unknown_InboundRoute</a></li>
  67. <li><a href="class-Mandrill_Unknown_IP.html">Mandrill_Unknown_IP</a></li>
  68. <li><a href="class-Mandrill_Unknown_Message.html">Mandrill_Unknown_Message</a></li>
  69. <li><a href="class-Mandrill_Unknown_MetadataField.html">Mandrill_Unknown_MetadataField</a></li>
  70. <li><a href="class-Mandrill_Unknown_Pool.html">Mandrill_Unknown_Pool</a></li>
  71. <li><a href="class-Mandrill_Unknown_Sender.html">Mandrill_Unknown_Sender</a></li>
  72. <li><a href="class-Mandrill_Unknown_Subaccount.html">Mandrill_Unknown_Subaccount</a></li>
  73. <li><a href="class-Mandrill_Unknown_Template.html">Mandrill_Unknown_Template</a></li>
  74. <li><a href="class-Mandrill_Unknown_TrackingDomain.html">Mandrill_Unknown_TrackingDomain</a></li>
  75. <li><a href="class-Mandrill_Unknown_Url.html">Mandrill_Unknown_Url</a></li>
  76. <li><a href="class-Mandrill_Unknown_Webhook.html">Mandrill_Unknown_Webhook</a></li>
  77. <li><a href="class-Mandrill_ValidationError.html">Mandrill_ValidationError</a></li>
  78. </ul>
  79. </div>
  80. </div>
  81. </div>
  82. <div id="splitter"></div>
  83. <div id="right">
  84. <div id="rightInner">
  85. <form id="search">
  86. <input type="hidden" name="cx" value="" />
  87. <input type="hidden" name="ie" value="UTF-8" />
  88. <input type="text" name="q" class="text" />
  89. <input type="submit" value="Search" />
  90. </form>
  91. <div id="navigation">
  92. <ul>
  93. <li>
  94. <a href="index.html" title="Overview"><span>Overview</span></a>
  95. </li>
  96. <li>
  97. <a href="namespace-None.html" title="Summary of None"><span>Namespace</span></a>
  98. </li>
  99. <li class="active">
  100. <span>Class</span> </li>
  101. </ul>
  102. <ul>
  103. <li>
  104. <a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
  105. </li>
  106. </ul>
  107. <ul>
  108. </ul>
  109. </div>
  110. <div id="content" class="class">
  111. <h1>Class Mandrill_Webhooks</h1>
  112. <div class="info">
  113. <b>Located at</b> <a href="source-class-Mandrill_Webhooks.html#3-120" title="Go to source code">Mandrill/Webhooks.php</a><br />
  114. </div>
  115. <table class="summary" id="methods">
  116. <caption>Methods summary</caption>
  117. <tr data-order="__construct" id="___construct">
  118. <td class="attributes"><code>
  119. public
  120. </code>
  121. </td>
  122. <td class="name"><div>
  123. <a class="anchor" href="#___construct">#</a>
  124. <code><a href="source-class-Mandrill_Webhooks.html#4-6" title="Go to source code">__construct</a>( <span><code><a href="class-Mandrill.html">Mandrill</a></code> <var>$master</var></span> )</code>
  125. <div class="description short">
  126. </div>
  127. <div class="description detailed hidden">
  128. </div>
  129. </div></td>
  130. </tr>
  131. <tr data-order="getList" id="_getList">
  132. <td class="attributes"><code>
  133. public
  134. array
  135. </code>
  136. </td>
  137. <td class="name"><div>
  138. <a class="anchor" href="#_getList">#</a>
  139. <code><a href="source-class-Mandrill_Webhooks.html#8-27" title="Go to source code">getList</a>( )</code>
  140. <div class="description short">
  141. <p>Get the list of all webhooks defined on the account</p>
  142. </div>
  143. <div class="description detailed hidden">
  144. <p>Get the list of all webhooks defined on the account</p>
  145. <h4>Returns</h4>
  146. <div class="list">
  147. <code>array</code><br>the webhooks associated with the account - return[] struct the individual
  148. webhook info - id integer a unique integer indentifier for the webhook - url
  149. string The URL that the event data will be posted to - description string a
  150. description of the webhook - auth_key string the key used to requests for this
  151. webhook - events array The message events that will be posted to the hook -
  152. events[] string the individual message event (send, hard_bounce, soft_bounce,
  153. open, click, spam, unsub, or reject) - created_at string the date and time that
  154. the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format -
  155. last_sent_at string the date and time that the webhook last successfully
  156. received events as a UTC string in YYYY-MM-DD HH:MM:SS format - batches_sent
  157. integer the number of event batches that have ever been sent to this webhook -
  158. events_sent integer the total number of events that have ever been sent to this
  159. webhook - last_error string if we've ever gotten an error trying to post to this
  160. webhook, the last error that we've seen<br />
  161. </div>
  162. </div>
  163. </div></td>
  164. </tr>
  165. <tr data-order="add" id="_add">
  166. <td class="attributes"><code>
  167. public
  168. struct
  169. </code>
  170. </td>
  171. <td class="name"><div>
  172. <a class="anchor" href="#_add">#</a>
  173. <code><a href="source-class-Mandrill_Webhooks.html#29-51" title="Go to source code">add</a>( <span>string <var>$url</var></span>, <span>string <var>$description</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$events</var> = <span class="php-keyword1">array</span>()</span> )</code>
  174. <div class="description short">
  175. <p>Add a new webhook</p>
  176. </div>
  177. <div class="description detailed hidden">
  178. <p>Add a new webhook</p>
  179. <h4>Parameters</h4>
  180. <div class="list"><dl>
  181. <dt><var>$url</var></dt>
  182. <dd><code>string</code><br>$url the URL to POST batches of events</dd>
  183. <dt><var>$description</var></dt>
  184. <dd><code>string</code><br>$description an optional description of the webhook</dd>
  185. <dt><var>$events</var></dt>
  186. <dd><code>array</code><br>$events an optional list of events that will be posted to the webhook - events[]
  187. string the individual event to listen for</dd>
  188. </dl></div>
  189. <h4>Returns</h4>
  190. <div class="list">
  191. <code>struct</code><br>the information saved about the new webhook - id integer a unique integer
  192. indentifier for the webhook - url string The URL that the event data will be
  193. posted to - description string a description of the webhook - auth_key string
  194. the key used to requests for this webhook - events array The message events that
  195. will be posted to the hook - events[] string the individual message event (send,
  196. hard_bounce, soft_bounce, open, click, spam, unsub, or reject) - created_at
  197. string the date and time that the webhook was created as a UTC string in
  198. YYYY-MM-DD HH:MM:SS format - last_sent_at string the date and time that the
  199. webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS
  200. format - batches_sent integer the number of event batches that have ever been
  201. sent to this webhook - events_sent integer the total number of events that have
  202. ever been sent to this webhook - last_error string if we've ever gotten an error
  203. trying to post to this webhook, the last error that we've seen<br />
  204. </div>
  205. </div>
  206. </div></td>
  207. </tr>
  208. <tr data-order="info" id="_info">
  209. <td class="attributes"><code>
  210. public
  211. struct
  212. </code>
  213. </td>
  214. <td class="name"><div>
  215. <a class="anchor" href="#_info">#</a>
  216. <code><a href="source-class-Mandrill_Webhooks.html#53-72" title="Go to source code">info</a>( <span>integer <var>$id</var></span> )</code>
  217. <div class="description short">
  218. <p>Given the ID of an existing webhook, return the data about it</p>
  219. </div>
  220. <div class="description detailed hidden">
  221. <p>Given the ID of an existing webhook, return the data about it</p>
  222. <h4>Parameters</h4>
  223. <div class="list"><dl>
  224. <dt><var>$id</var></dt>
  225. <dd><code>integer</code><br>$id the unique identifier of a webhook belonging to this account</dd>
  226. </dl></div>
  227. <h4>Returns</h4>
  228. <div class="list">
  229. <code>struct</code><br>the information about the webhook - id integer a unique integer indentifier for
  230. the webhook - url string The URL that the event data will be posted to -
  231. description string a description of the webhook - auth_key string the key used
  232. to requests for this webhook - events array The message events that will be
  233. posted to the hook - events[] string the individual message event (send,
  234. hard_bounce, soft_bounce, open, click, spam, unsub, or reject) - created_at
  235. string the date and time that the webhook was created as a UTC string in
  236. YYYY-MM-DD HH:MM:SS format - last_sent_at string the date and time that the
  237. webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS
  238. format - batches_sent integer the number of event batches that have ever been
  239. sent to this webhook - events_sent integer the total number of events that have
  240. ever been sent to this webhook - last_error string if we've ever gotten an error
  241. trying to post to this webhook, the last error that we've seen<br />
  242. </div>
  243. </div>
  244. </div></td>
  245. </tr>
  246. <tr data-order="update" id="_update">
  247. <td class="attributes"><code>
  248. public
  249. struct
  250. </code>
  251. </td>
  252. <td class="name"><div>
  253. <a class="anchor" href="#_update">#</a>
  254. <code><a href="source-class-Mandrill_Webhooks.html#74-97" title="Go to source code">update</a>( <span>integer <var>$id</var></span>, <span>string <var>$url</var></span>, <span>string <var>$description</var> = <span class="php-keyword1">null</span></span>, <span>array <var>$events</var> = <span class="php-keyword1">array</span>()</span> )</code>
  255. <div class="description short">
  256. <p>Update an existing webhook</p>
  257. </div>
  258. <div class="description detailed hidden">
  259. <p>Update an existing webhook</p>
  260. <h4>Parameters</h4>
  261. <div class="list"><dl>
  262. <dt><var>$id</var></dt>
  263. <dd><code>integer</code><br>$id the unique identifier of a webhook belonging to this account</dd>
  264. <dt><var>$url</var></dt>
  265. <dd><code>string</code><br>$url the URL to POST batches of events</dd>
  266. <dt><var>$description</var></dt>
  267. <dd><code>string</code><br>$description an optional description of the webhook</dd>
  268. <dt><var>$events</var></dt>
  269. <dd><code>array</code><br>$events an optional list of events that will be posted to the webhook - events[]
  270. string the individual event to listen for</dd>
  271. </dl></div>
  272. <h4>Returns</h4>
  273. <div class="list">
  274. <code>struct</code><br>the information for the updated webhook - id integer a unique integer
  275. indentifier for the webhook - url string The URL that the event data will be
  276. posted to - description string a description of the webhook - auth_key string
  277. the key used to requests for this webhook - events array The message events that
  278. will be posted to the hook - events[] string the individual message event (send,
  279. hard_bounce, soft_bounce, open, click, spam, unsub, or reject) - created_at
  280. string the date and time that the webhook was created as a UTC string in
  281. YYYY-MM-DD HH:MM:SS format - last_sent_at string the date and time that the
  282. webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS
  283. format - batches_sent integer the number of event batches that have ever been
  284. sent to this webhook - events_sent integer the total number of events that have
  285. ever been sent to this webhook - last_error string if we've ever gotten an error
  286. trying to post to this webhook, the last error that we've seen<br />
  287. </div>
  288. </div>
  289. </div></td>
  290. </tr>
  291. <tr data-order="delete" id="_delete">
  292. <td class="attributes"><code>
  293. public
  294. struct
  295. </code>
  296. </td>
  297. <td class="name"><div>
  298. <a class="anchor" href="#_delete">#</a>
  299. <code><a href="source-class-Mandrill_Webhooks.html#99-118" title="Go to source code">delete</a>( <span>integer <var>$id</var></span> )</code>
  300. <div class="description short">
  301. <p>Delete an existing webhook</p>
  302. </div>
  303. <div class="description detailed hidden">
  304. <p>Delete an existing webhook</p>
  305. <h4>Parameters</h4>
  306. <div class="list"><dl>
  307. <dt><var>$id</var></dt>
  308. <dd><code>integer</code><br>$id the unique identifier of a webhook belonging to this account</dd>
  309. </dl></div>
  310. <h4>Returns</h4>
  311. <div class="list">
  312. <code>struct</code><br>the information for the deleted webhook - id integer a unique integer
  313. indentifier for the webhook - url string The URL that the event data will be
  314. posted to - description string a description of the webhook - auth_key string
  315. the key used to requests for this webhook - events array The message events that
  316. will be posted to the hook - events[] string the individual message event (send,
  317. hard_bounce, soft_bounce, open, click, spam, unsub, or reject) - created_at
  318. string the date and time that the webhook was created as a UTC string in
  319. YYYY-MM-DD HH:MM:SS format - last_sent_at string the date and time that the
  320. webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS
  321. format - batches_sent integer the number of event batches that have ever been
  322. sent to this webhook - events_sent integer the total number of events that have
  323. ever been sent to this webhook - last_error string if we've ever gotten an error
  324. trying to post to this webhook, the last error that we've seen<br />
  325. </div>
  326. </div>
  327. </div></td>
  328. </tr>
  329. </table>
  330. </div>
  331. <div id="footer">
  332. API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
  333. </div>
  334. </div>
  335. </div>
  336. </body>
  337. </html>