diff --git a/src/Resources/Mailbox.php b/src/Resources/Mailbox.php new file mode 100644 index 0000000..8cdaaa3 --- /dev/null +++ b/src/Resources/Mailbox.php @@ -0,0 +1,45 @@ +request->get('mailThreads/:id', compact('id')); + } + + /** + * Get list of mail threads + * + * @param $folder + * @param array $options + * @return Response + */ + public function mailThreads($folder, $options = []) + { + $options['folder'] = $folder; + + return $this->request->get('mailThreads', $options); + } + + /** + * Get mail messages inside specified mail thread by ID. + * + * @param $id Mail threads ID to find messages. + * @return Response + */ + public function mailMessages($id) + { + return $this->request->get('mailThreads/:id/mailMessages', compact('id')); + } +} \ No newline at end of file