Skip to content

Commit 317d977

Browse files
committed
Stories client module
1 parent e80c8af commit 317d977

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

lib/extracker/stories.ex

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
defmodule ExTracker.Stories do
2+
import ExTracker
3+
alias Extracker.Client
4+
5+
@doc """
6+
Get all stories from project
7+
8+
## Example
9+
10+
ExTracker.Stories.list(client, project_id)
11+
12+
More info at:https://www.pivotaltracker.com/help/api/rest/v5#Stories
13+
"""
14+
@spec list(Client.t, pos_integer, [{atom, binary}] | []) :: [ExTracker.Record.Story.t] | []
15+
def list(client, project_id, params \\ []) do
16+
get("projects/#{project_id}/stories", client, params)
17+
|> ExTracker.Parser.parse_stories
18+
end
19+
end

0 commit comments

Comments
 (0)