PageRenderTime 27ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/class-Mandrill_Webhooks.html

https://bitbucket.org/davisshaver/mandrill-api-php
HTML | 460 lines | 309 code | 151 blank | 0 comment | 0 complexity | 431d4711e5bfddbfd791b62071e178e9 MD5 | raw file
  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?2926172792"></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_Inbound.html">Mandrill_Inbound</a></li>
  30. <li><a href="class-Mandrill_Internal.html">Mandrill_Internal</a></li>
  31. <li><a href="class-Mandrill_Messages.html">Mandrill_Messages</a></li>
  32. <li><a href="class-Mandrill_Rejects.html">Mandrill_Rejects</a></li>
  33. <li><a href="class-Mandrill_Senders.html">Mandrill_Senders</a></li>
  34. <li><a href="class-Mandrill_Tags.html">Mandrill_Tags</a></li>
  35. <li><a href="class-Mandrill_Templates.html">Mandrill_Templates</a></li>
  36. <li><a href="class-Mandrill_Urls.html">Mandrill_Urls</a></li>
  37. <li><a href="class-Mandrill_Users.html">Mandrill_Users</a></li>
  38. <li class="active"><a href="class-Mandrill_Webhooks.html">Mandrill_Webhooks</a></li>
  39. <li><a href="class-Mandrill_Whitelists.html">Mandrill_Whitelists</a></li>
  40. </ul>
  41. <h3>Exceptions</h3>
  42. <ul>
  43. <li><a href="class-Mandrill_Error.html">Mandrill_Error</a></li>
  44. <li><a href="class-Mandrill_HttpError.html">Mandrill_HttpError</a></li>
  45. <li><a href="class-Mandrill_Invalid_Key.html">Mandrill_Invalid_Key</a></li>
  46. <li><a href="class-Mandrill_Invalid_Reject.html">Mandrill_Invalid_Reject</a></li>
  47. <li><a href="class-Mandrill_Invalid_Tag_Name.html">Mandrill_Invalid_Tag_Name</a></li>
  48. <li><a href="class-Mandrill_Invalid_Template.html">Mandrill_Invalid_Template</a></li>
  49. <li><a href="class-Mandrill_Unknown_InboundDomain.html">Mandrill_Unknown_InboundDomain</a></li>
  50. <li><a href="class-Mandrill_Unknown_Sender.html">Mandrill_Unknown_Sender</a></li>
  51. <li><a href="class-Mandrill_Unknown_Template.html">Mandrill_Unknown_Template</a></li>
  52. <li><a href="class-Mandrill_Unknown_Url.html">Mandrill_Unknown_Url</a></li>
  53. <li><a href="class-Mandrill_Unknown_Webhook.html">Mandrill_Unknown_Webhook</a></li>
  54. <li><a href="class-Mandrill_ValidationError.html">Mandrill_ValidationError</a></li>
  55. </ul>
  56. </div>
  57. </div>
  58. </div>
  59. <div id="splitter"></div>
  60. <div id="right">
  61. <div id="rightInner">
  62. <form id="search">
  63. <input type="hidden" name="cx" value="" />
  64. <input type="hidden" name="ie" value="UTF-8" />
  65. <input type="text" name="q" class="text" />
  66. <input type="submit" value="Search" />
  67. </form>
  68. <div id="navigation">
  69. <ul>
  70. <li>
  71. <a href="index.html" title="Overview"><span>Overview</span></a>
  72. </li>
  73. <li>
  74. <a href="namespace-None.html" title="Summary of None"><span>Namespace</span></a>
  75. </li>
  76. <li class="active">
  77. <span>Class</span> </li>
  78. </ul>
  79. <ul>
  80. <li>
  81. <a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
  82. </li>
  83. </ul>
  84. <ul>
  85. </ul>
  86. </div>
  87. <div id="content" class="class">
  88. <h1>Class Mandrill_Webhooks</h1>
  89. <div class="info">
  90. <b>Located at</b> <a href="source-class-Mandrill_Webhooks.html#3-115" title="Go to source code">Mandrill/Webhooks.php</a><br />
  91. </div>
  92. <table class="summary" id="methods">
  93. <caption>Methods summary</caption>
  94. <tr data-order="__construct" id="___construct">
  95. <td class="attributes"><code>
  96. public
  97. </code>
  98. </td>
  99. <td class="name"><div>
  100. <a class="anchor" href="#___construct">#</a>
  101. <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>
  102. <div class="description short">
  103. </div>
  104. <div class="description detailed hidden">
  105. </div>
  106. </div></td>
  107. </tr>
  108. <tr data-order="getList" id="_getList">
  109. <td class="attributes"><code>
  110. public
  111. array
  112. </code>
  113. </td>
  114. <td class="name"><div>
  115. <a class="anchor" href="#_getList">#</a>
  116. <code><a href="source-class-Mandrill_Webhooks.html#8-26" title="Go to source code">getList</a>( )</code>
  117. <div class="description short">
  118. <p>Get the list of all webhooks defined on the account</p>
  119. </div>
  120. <div class="description detailed hidden">
  121. <p>Get the list of all webhooks defined on the account</p>
  122. <h4>Returns</h4>
  123. <div class="list">
  124. <code>array</code><br>the webhooks associated with the account - return[] struct the inidividual
  125. webhook info - id integer a unique integer indentifier for the webhook - url
  126. string The URL that the event data will be posted to - description string a
  127. description of the webhook - events array The message events that will be posted
  128. to the hook - events[] string the individual message event (send, hard_bounce,
  129. soft_bounce, open, click, spam, unsub, or reject) - created_at string the date
  130. and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS
  131. format - last_sent_at string the date and time that the webhook last
  132. successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS format -
  133. batches_sent integer the number of event batches that have ever been sent to
  134. this webhook - events_sent integer the total number of events that have ever
  135. been sent to this webhook - last_error string if we've ever gotten an error
  136. trying to post to this webhook, the last error that we've seen<br />
  137. </div>
  138. </div>
  139. </div></td>
  140. </tr>
  141. <tr data-order="add" id="_add">
  142. <td class="attributes"><code>
  143. public
  144. struct
  145. </code>
  146. </td>
  147. <td class="name"><div>
  148. <a class="anchor" href="#_add">#</a>
  149. <code><a href="source-class-Mandrill_Webhooks.html#28-49" 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>
  150. <div class="description short">
  151. <p>Add a new webhook</p>
  152. </div>
  153. <div class="description detailed hidden">
  154. <p>Add a new webhook</p>
  155. <h4>Parameters</h4>
  156. <div class="list"><dl>
  157. <dt><var>$url</var></dt>
  158. <dd><code>string</code><br>$url the URL to POST batches of events</dd>
  159. <dt><var>$description</var></dt>
  160. <dd><code>string</code><br>$description an optional description of the webhook</dd>
  161. <dt><var>$events</var></dt>
  162. <dd><code>array</code><br>$events an optional list of events that will be posted to the webhook - events[]
  163. string the individual event to listen for</dd>
  164. </dl></div>
  165. <h4>Returns</h4>
  166. <div class="list">
  167. <code>struct</code><br>the information saved about the new webhook - id integer a unique integer
  168. indentifier for the webhook - url string The URL that the event data will be
  169. posted to - description string a description of the webhook - events array The
  170. message events that will be posted to the hook - events[] string the individual
  171. message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or
  172. reject) - created_at string the date and time that the webhook was created as a
  173. UTC string in YYYY-MM-DD HH:MM:SS format - last_sent_at string the date and time
  174. that the webhook last successfully received events as a UTC string in YYYY-MM-DD
  175. HH:MM:SS format - batches_sent integer the number of event batches that have
  176. ever been sent to this webhook - events_sent integer the total number of events
  177. that have ever been sent to this webhook - last_error string if we've ever
  178. gotten an error trying to post to this webhook, the last error that we've seen<br />
  179. </div>
  180. </div>
  181. </div></td>
  182. </tr>
  183. <tr data-order="info" id="_info">
  184. <td class="attributes"><code>
  185. public
  186. struct
  187. </code>
  188. </td>
  189. <td class="name"><div>
  190. <a class="anchor" href="#_info">#</a>
  191. <code><a href="source-class-Mandrill_Webhooks.html#51-69" title="Go to source code">info</a>( <span>integer <var>$id</var></span> )</code>
  192. <div class="description short">
  193. <p>Given the ID of an existing webhook, return the data about it</p>
  194. </div>
  195. <div class="description detailed hidden">
  196. <p>Given the ID of an existing webhook, return the data about it</p>
  197. <h4>Parameters</h4>
  198. <div class="list"><dl>
  199. <dt><var>$id</var></dt>
  200. <dd><code>integer</code><br>$id the unique identifier of a webhook belonging to this account</dd>
  201. </dl></div>
  202. <h4>Returns</h4>
  203. <div class="list">
  204. <code>struct</code><br>the information about the webhook - id integer a unique integer indentifier for
  205. the webhook - url string The URL that the event data will be posted to -
  206. description string a description of the webhook - events array The message
  207. events that will be posted to the hook - events[] string the individual message
  208. event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or reject) -
  209. created_at string the date and time that the webhook was created as a UTC string
  210. in YYYY-MM-DD HH:MM:SS format - last_sent_at string the date and time that the
  211. webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS
  212. format - batches_sent integer the number of event batches that have ever been
  213. sent to this webhook - events_sent integer the total number of events that have
  214. ever been sent to this webhook - last_error string if we've ever gotten an error
  215. trying to post to this webhook, the last error that we've seen<br />
  216. </div>
  217. </div>
  218. </div></td>
  219. </tr>
  220. <tr data-order="update" id="_update">
  221. <td class="attributes"><code>
  222. public
  223. struct
  224. </code>
  225. </td>
  226. <td class="name"><div>
  227. <a class="anchor" href="#_update">#</a>
  228. <code><a href="source-class-Mandrill_Webhooks.html#71-93" 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>
  229. <div class="description short">
  230. <p>Update an existing webhook</p>
  231. </div>
  232. <div class="description detailed hidden">
  233. <p>Update an existing webhook</p>
  234. <h4>Parameters</h4>
  235. <div class="list"><dl>
  236. <dt><var>$id</var></dt>
  237. <dd><code>integer</code><br>$id the unique identifier of a webhook belonging to this account</dd>
  238. <dt><var>$url</var></dt>
  239. <dd><code>string</code><br>$url the URL to POST batches of events</dd>
  240. <dt><var>$description</var></dt>
  241. <dd><code>string</code><br>$description an optional description of the webhook</dd>
  242. <dt><var>$events</var></dt>
  243. <dd><code>array</code><br>$events an optional list of events that will be posted to the webhook - events[]
  244. string the individual event to listen for</dd>
  245. </dl></div>
  246. <h4>Returns</h4>
  247. <div class="list">
  248. <code>struct</code><br>the information for the updated webhook - id integer a unique integer
  249. indentifier for the webhook - url string The URL that the event data will be
  250. posted to - description string a description of the webhook - events array The
  251. message events that will be posted to the hook - events[] string the individual
  252. message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or
  253. reject) - created_at string the date and time that the webhook was created as a
  254. UTC string in YYYY-MM-DD HH:MM:SS format - last_sent_at string the date and time
  255. that the webhook last successfully received events as a UTC string in YYYY-MM-DD
  256. HH:MM:SS format - batches_sent integer the number of event batches that have
  257. ever been sent to this webhook - events_sent integer the total number of events
  258. that have ever been sent to this webhook - last_error string if we've ever
  259. gotten an error trying to post to this webhook, the last error that we've seen<br />
  260. </div>
  261. </div>
  262. </div></td>
  263. </tr>
  264. <tr data-order="delete" id="_delete">
  265. <td class="attributes"><code>
  266. public
  267. struct
  268. </code>
  269. </td>
  270. <td class="name"><div>
  271. <a class="anchor" href="#_delete">#</a>
  272. <code><a href="source-class-Mandrill_Webhooks.html#95-113" title="Go to source code">delete</a>( <span>integer <var>$id</var></span> )</code>
  273. <div class="description short">
  274. <p>Delete an existing webhook</p>
  275. </div>
  276. <div class="description detailed hidden">
  277. <p>Delete an existing webhook</p>
  278. <h4>Parameters</h4>
  279. <div class="list"><dl>
  280. <dt><var>$id</var></dt>
  281. <dd><code>integer</code><br>$id the unique identifier of a webhook belonging to this account</dd>
  282. </dl></div>
  283. <h4>Returns</h4>
  284. <div class="list">
  285. <code>struct</code><br>the information for the deleted webhook - id integer a unique integer
  286. indentifier for the webhook - url string The URL that the event data will be
  287. posted to - description string a description of the webhook - events array The
  288. message events that will be posted to the hook - events[] string the individual
  289. message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or
  290. reject) - created_at string the date and time that the webhook was created as a
  291. UTC string in YYYY-MM-DD HH:MM:SS format - last_sent_at string the date and time
  292. that the webhook last successfully received events as a UTC string in YYYY-MM-DD
  293. HH:MM:SS format - batches_sent integer the number of event batches that have
  294. ever been sent to this webhook - events_sent integer the total number of events
  295. that have ever been sent to this webhook - last_error string if we've ever
  296. gotten an error trying to post to this webhook, the last error that we've seen<br />
  297. </div>
  298. </div>
  299. </div></td>
  300. </tr>
  301. </table>
  302. </div>
  303. <div id="footer">
  304. API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
  305. </div>
  306. </div>
  307. </div>
  308. </body>
  309. </html>