class-Mandrill_Subaccounts.html 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  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_Subaccounts</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 class="active"><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><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_Subaccounts</h1>
  112. <div class="info">
  113. <b>Located at</b> <a href="source-class-Mandrill_Subaccounts.html#3-169" title="Go to source code">Mandrill/Subaccounts.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_Subaccounts.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_Subaccounts.html#8-27" title="Go to source code">getList</a>( <span>string <var>$q</var> = <span class="php-keyword1">null</span></span> )</code>
  140. <div class="description short">
  141. <p>Get the list of subaccounts defined for the account, optionally filtered by a
  142. prefix</p>
  143. </div>
  144. <div class="description detailed hidden">
  145. <p>Get the list of subaccounts defined for the account, optionally filtered by a
  146. prefix</p>
  147. <h4>Parameters</h4>
  148. <div class="list"><dl>
  149. <dt><var>$q</var></dt>
  150. <dd><code>string</code><br>$q an optional prefix to filter the subaccounts' ids and names</dd>
  151. </dl></div>
  152. <h4>Returns</h4>
  153. <div class="list">
  154. <code>array</code><br>the subaccounts for the account, up to a maximum of 1,000 - return[] struct the
  155. individual subaccount info - id string a unique indentifier for the subaccount -
  156. name string an optional display name for the subaccount - custom_quota integer
  157. an optional manual hourly quota for the subaccount. If not specified, the hourly
  158. quota will be managed based on reputation - status string the current sending
  159. status of the subaccount, one of "active" or "paused" - reputation integer the
  160. subaccount's current reputation on a scale from 0 to 100 - created_at string the
  161. date and time that the subaccount was created as a UTC string in YYYY-MM-DD
  162. HH:MM:SS format - first_sent_at string the date and time that the subaccount
  163. first sent as a UTC string in YYYY-MM-DD HH:MM:SS format - sent_weekly integer
  164. the number of emails the subaccount has sent so far this week (weeks start on
  165. midnight Monday, UTC) - sent_monthly integer the number of emails the subaccount
  166. has sent so far this month (months start on midnight of the 1st, UTC) -
  167. sent_total integer the number of emails the subaccount has sent since it was
  168. created<br />
  169. </div>
  170. </div>
  171. </div></td>
  172. </tr>
  173. <tr data-order="add" id="_add">
  174. <td class="attributes"><code>
  175. public
  176. struct
  177. </code>
  178. </td>
  179. <td class="name"><div>
  180. <a class="anchor" href="#_add">#</a>
  181. <code><a href="source-class-Mandrill_Subaccounts.html#29-50" title="Go to source code">add</a>( <span>string <var>$id</var></span>, <span>string <var>$name</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$notes</var> = <span class="php-keyword1">null</span></span>, <span>integer <var>$custom_quota</var> = <span class="php-keyword1">null</span></span> )</code>
  182. <div class="description short">
  183. <p>Add a new subaccount</p>
  184. </div>
  185. <div class="description detailed hidden">
  186. <p>Add a new subaccount</p>
  187. <h4>Parameters</h4>
  188. <div class="list"><dl>
  189. <dt><var>$id</var></dt>
  190. <dd><code>string</code><br>$id a unique identifier for the subaccount to be used in sending calls</dd>
  191. <dt><var>$name</var></dt>
  192. <dd><code>string</code><br>$name an optional display name to further identify the subaccount</dd>
  193. <dt><var>$notes</var></dt>
  194. <dd><code>string</code><br>$notes optional extra text to associate with the subaccount</dd>
  195. <dt><var>$custom_quota</var></dt>
  196. <dd><code>integer</code><br>$custom_quota an optional manual hourly quota for the subaccount. If not
  197. specified, Mandrill will manage this based on reputation</dd>
  198. </dl></div>
  199. <h4>Returns</h4>
  200. <div class="list">
  201. <code>struct</code><br>the information saved about the new subaccount - id string a unique indentifier
  202. for the subaccount - name string an optional display name for the subaccount -
  203. custom_quota integer an optional manual hourly quota for the subaccount. If not
  204. specified, the hourly quota will be managed based on reputation - status string
  205. the current sending status of the subaccount, one of "active" or "paused" -
  206. reputation integer the subaccount's current reputation on a scale from 0 to 100
  207. - created_at string the date and time that the subaccount was created as a UTC
  208. string in YYYY-MM-DD HH:MM:SS format - first_sent_at string the date and time
  209. that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format -
  210. sent_weekly integer the number of emails the subaccount has sent so far this
  211. week (weeks start on midnight Monday, UTC) - sent_monthly integer the number of
  212. emails the subaccount has sent so far this month (months start on midnight of
  213. the 1st, UTC) - sent_total integer the number of emails the subaccount has sent
  214. since it was created<br />
  215. </div>
  216. </div>
  217. </div></td>
  218. </tr>
  219. <tr data-order="info" id="_info">
  220. <td class="attributes"><code>
  221. public
  222. struct
  223. </code>
  224. </td>
  225. <td class="name"><div>
  226. <a class="anchor" href="#_info">#</a>
  227. <code><a href="source-class-Mandrill_Subaccounts.html#52-84" title="Go to source code">info</a>( <span>string <var>$id</var></span> )</code>
  228. <div class="description short">
  229. <p>Given the ID of an existing subaccount, return the data about it</p>
  230. </div>
  231. <div class="description detailed hidden">
  232. <p>Given the ID of an existing subaccount, return the data about it</p>
  233. <h4>Parameters</h4>
  234. <div class="list"><dl>
  235. <dt><var>$id</var></dt>
  236. <dd><code>string</code><br>$id the unique identifier of the subaccount to query</dd>
  237. </dl></div>
  238. <h4>Returns</h4>
  239. <div class="list">
  240. <code>struct</code><br>the information about the subaccount - id string a unique indentifier for the
  241. subaccount - name string an optional display name for the subaccount - notes
  242. string optional extra text to associate with the subaccount - custom_quota
  243. integer an optional manual hourly quota for the subaccount. If not specified,
  244. the hourly quota will be managed based on reputation - status string the current
  245. sending status of the subaccount, one of "active" or "paused" - reputation
  246. integer the subaccount's current reputation on a scale from 0 to 100 -
  247. created_at string the date and time that the subaccount was created as a UTC
  248. string in YYYY-MM-DD HH:MM:SS format - first_sent_at string the date and time
  249. that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format -
  250. sent_weekly integer the number of emails the subaccount has sent so far this
  251. week (weeks start on midnight Monday, UTC) - sent_monthly integer the number of
  252. emails the subaccount has sent so far this month (months start on midnight of
  253. the 1st, UTC) - sent_total integer the number of emails the subaccount has sent
  254. since it was created - sent_hourly integer the number of emails the subaccount
  255. has sent in the last hour - hourly_quota integer the current hourly quota for
  256. the subaccount, either manual or reputation-based - last<sub>30</sub>_days
  257. struct stats for this subaccount in the last 30 days - sent integer the number
  258. of emails sent for this subaccount in the last 30 days - hard_bounces integer
  259. the number of emails hard bounced for this subaccount in the last 30 days -
  260. soft_bounces integer the number of emails soft bounced for this subaccount in
  261. the last 30 days - rejects integer the number of emails rejected for sending
  262. this subaccount in the last 30 days - complaints integer the number of spam
  263. complaints for this subaccount in the last 30 days - unsubs integer the number
  264. of unsbuscribes for this subaccount in the last 30 days - opens integer the
  265. number of times emails have been opened for this subaccount in the last 30 days
  266. - unique_opens integer the number of unique opens for emails sent for this
  267. subaccount in the last 30 days - clicks integer the number of URLs that have
  268. been clicked for this subaccount in the last 30 days - unique_clicks integer the
  269. number of unique clicks for emails sent for this subaccount in the last 30 days<br />
  270. </div>
  271. </div>
  272. </div></td>
  273. </tr>
  274. <tr data-order="update" id="_update">
  275. <td class="attributes"><code>
  276. public
  277. struct
  278. </code>
  279. </td>
  280. <td class="name"><div>
  281. <a class="anchor" href="#_update">#</a>
  282. <code><a href="source-class-Mandrill_Subaccounts.html#86-107" title="Go to source code">update</a>( <span>string <var>$id</var></span>, <span>string <var>$name</var> = <span class="php-keyword1">null</span></span>, <span>string <var>$notes</var> = <span class="php-keyword1">null</span></span>, <span>integer <var>$custom_quota</var> = <span class="php-keyword1">null</span></span> )</code>
  283. <div class="description short">
  284. <p>Update an existing subaccount</p>
  285. </div>
  286. <div class="description detailed hidden">
  287. <p>Update an existing subaccount</p>
  288. <h4>Parameters</h4>
  289. <div class="list"><dl>
  290. <dt><var>$id</var></dt>
  291. <dd><code>string</code><br>$id the unique identifier of the subaccount to update</dd>
  292. <dt><var>$name</var></dt>
  293. <dd><code>string</code><br>$name an optional display name to further identify the subaccount</dd>
  294. <dt><var>$notes</var></dt>
  295. <dd><code>string</code><br>$notes optional extra text to associate with the subaccount</dd>
  296. <dt><var>$custom_quota</var></dt>
  297. <dd><code>integer</code><br>$custom_quota an optional manual hourly quota for the subaccount. If not
  298. specified, Mandrill will manage this based on reputation</dd>
  299. </dl></div>
  300. <h4>Returns</h4>
  301. <div class="list">
  302. <code>struct</code><br>the information for the updated subaccount - id string a unique indentifier for
  303. the subaccount - name string an optional display name for the subaccount -
  304. custom_quota integer an optional manual hourly quota for the subaccount. If not
  305. specified, the hourly quota will be managed based on reputation - status string
  306. the current sending status of the subaccount, one of "active" or "paused" -
  307. reputation integer the subaccount's current reputation on a scale from 0 to 100
  308. - created_at string the date and time that the subaccount was created as a UTC
  309. string in YYYY-MM-DD HH:MM:SS format - first_sent_at string the date and time
  310. that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format -
  311. sent_weekly integer the number of emails the subaccount has sent so far this
  312. week (weeks start on midnight Monday, UTC) - sent_monthly integer the number of
  313. emails the subaccount has sent so far this month (months start on midnight of
  314. the 1st, UTC) - sent_total integer the number of emails the subaccount has sent
  315. since it was created<br />
  316. </div>
  317. </div>
  318. </div></td>
  319. </tr>
  320. <tr data-order="delete" id="_delete">
  321. <td class="attributes"><code>
  322. public
  323. struct
  324. </code>
  325. </td>
  326. <td class="name"><div>
  327. <a class="anchor" href="#_delete">#</a>
  328. <code><a href="source-class-Mandrill_Subaccounts.html#109-127" title="Go to source code">delete</a>( <span>string <var>$id</var></span> )</code>
  329. <div class="description short">
  330. <p>Delete an existing subaccount. Any email related to the subaccount will be
  331. saved, but stats will be removed and any future sending calls to this subaccount
  332. will fail.</p>
  333. </div>
  334. <div class="description detailed hidden">
  335. <p>Delete an existing subaccount. Any email related to the subaccount will be
  336. saved, but stats will be removed and any future sending calls to this subaccount
  337. will fail.</p>
  338. <h4>Parameters</h4>
  339. <div class="list"><dl>
  340. <dt><var>$id</var></dt>
  341. <dd><code>string</code><br>$id the unique identifier of the subaccount to delete</dd>
  342. </dl></div>
  343. <h4>Returns</h4>
  344. <div class="list">
  345. <code>struct</code><br>the information for the deleted subaccount - id string a unique indentifier for
  346. the subaccount - name string an optional display name for the subaccount -
  347. custom_quota integer an optional manual hourly quota for the subaccount. If not
  348. specified, the hourly quota will be managed based on reputation - status string
  349. the current sending status of the subaccount, one of "active" or "paused" -
  350. reputation integer the subaccount's current reputation on a scale from 0 to 100
  351. - created_at string the date and time that the subaccount was created as a UTC
  352. string in YYYY-MM-DD HH:MM:SS format - first_sent_at string the date and time
  353. that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format -
  354. sent_weekly integer the number of emails the subaccount has sent so far this
  355. week (weeks start on midnight Monday, UTC) - sent_monthly integer the number of
  356. emails the subaccount has sent so far this month (months start on midnight of
  357. the 1st, UTC) - sent_total integer the number of emails the subaccount has sent
  358. since it was created<br />
  359. </div>
  360. </div>
  361. </div></td>
  362. </tr>
  363. <tr data-order="pause" id="_pause">
  364. <td class="attributes"><code>
  365. public
  366. struct
  367. </code>
  368. </td>
  369. <td class="name"><div>
  370. <a class="anchor" href="#_pause">#</a>
  371. <code><a href="source-class-Mandrill_Subaccounts.html#129-147" title="Go to source code">pause</a>( <span>string <var>$id</var></span> )</code>
  372. <div class="description short">
  373. <p>Pause a subaccount's sending. Any future emails delivered to this subaccount
  374. will be queued for a maximum of 3 days until the subaccount is resumed.</p>
  375. </div>
  376. <div class="description detailed hidden">
  377. <p>Pause a subaccount's sending. Any future emails delivered to this subaccount
  378. will be queued for a maximum of 3 days until the subaccount is resumed.</p>
  379. <h4>Parameters</h4>
  380. <div class="list"><dl>
  381. <dt><var>$id</var></dt>
  382. <dd><code>string</code><br>$id the unique identifier of the subaccount to pause</dd>
  383. </dl></div>
  384. <h4>Returns</h4>
  385. <div class="list">
  386. <code>struct</code><br>the information for the paused subaccount - id string a unique indentifier for
  387. the subaccount - name string an optional display name for the subaccount -
  388. custom_quota integer an optional manual hourly quota for the subaccount. If not
  389. specified, the hourly quota will be managed based on reputation - status string
  390. the current sending status of the subaccount, one of "active" or "paused" -
  391. reputation integer the subaccount's current reputation on a scale from 0 to 100
  392. - created_at string the date and time that the subaccount was created as a UTC
  393. string in YYYY-MM-DD HH:MM:SS format - first_sent_at string the date and time
  394. that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format -
  395. sent_weekly integer the number of emails the subaccount has sent so far this
  396. week (weeks start on midnight Monday, UTC) - sent_monthly integer the number of
  397. emails the subaccount has sent so far this month (months start on midnight of
  398. the 1st, UTC) - sent_total integer the number of emails the subaccount has sent
  399. since it was created<br />
  400. </div>
  401. </div>
  402. </div></td>
  403. </tr>
  404. <tr data-order="resume" id="_resume">
  405. <td class="attributes"><code>
  406. public
  407. struct
  408. </code>
  409. </td>
  410. <td class="name"><div>
  411. <a class="anchor" href="#_resume">#</a>
  412. <code><a href="source-class-Mandrill_Subaccounts.html#149-167" title="Go to source code">resume</a>( <span>string <var>$id</var></span> )</code>
  413. <div class="description short">
  414. <p>Resume a paused subaccount's sending</p>
  415. </div>
  416. <div class="description detailed hidden">
  417. <p>Resume a paused subaccount's sending</p>
  418. <h4>Parameters</h4>
  419. <div class="list"><dl>
  420. <dt><var>$id</var></dt>
  421. <dd><code>string</code><br>$id the unique identifier of the subaccount to resume</dd>
  422. </dl></div>
  423. <h4>Returns</h4>
  424. <div class="list">
  425. <code>struct</code><br>the information for the resumed subaccount - id string a unique indentifier for
  426. the subaccount - name string an optional display name for the subaccount -
  427. custom_quota integer an optional manual hourly quota for the subaccount. If not
  428. specified, the hourly quota will be managed based on reputation - status string
  429. the current sending status of the subaccount, one of "active" or "paused" -
  430. reputation integer the subaccount's current reputation on a scale from 0 to 100
  431. - created_at string the date and time that the subaccount was created as a UTC
  432. string in YYYY-MM-DD HH:MM:SS format - first_sent_at string the date and time
  433. that the subaccount first sent as a UTC string in YYYY-MM-DD HH:MM:SS format -
  434. sent_weekly integer the number of emails the subaccount has sent so far this
  435. week (weeks start on midnight Monday, UTC) - sent_monthly integer the number of
  436. emails the subaccount has sent so far this month (months start on midnight of
  437. the 1st, UTC) - sent_total integer the number of emails the subaccount has sent
  438. since it was created<br />
  439. </div>
  440. </div>
  441. </div></td>
  442. </tr>
  443. </table>
  444. </div>
  445. <div id="footer">
  446. API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
  447. </div>
  448. </div>
  449. </div>
  450. </body>
  451. </html>