Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Commit

Permalink
Merge pull request #17 from siftware/feature/base-comment-functionality
Browse files Browse the repository at this point in the history
Feature/base comment functionality
  • Loading branch information
rossedman committed Feb 5, 2016
2 parents f6fb022 + 98006fa commit da3b733
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Rossedman/Teamwork/Comments.php
@@ -0,0 +1,23 @@
<?php namespace Rossedman\Teamwork;

use Rossedman\Teamwork\Traits\RestfulTrait;

class Comments extends AbstractObject {

use RestfulTrait;

protected $wrapper = 'comment';

protected $endpoint = 'comments';

/**
* Create Message
* POST /$resource/$id/comments.json
*
* @retun mixed
*/
public function create($resource, $resouce_id, $data)
{
return $this->client->post("$resource/$resouce_id/comments", [$this->wrapper => $data])->response();
}
}

0 comments on commit da3b733

Please sign in to comment.