Skip to content

clockkcom/stories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stories

An Elixir API wrapper for the Stories API (https://www.getstories.io/)

Read docs https://hexdocs.pm/stories

Stories gathers everything that happens regarding a user on a timeline, so you can understand what is going on and take action in the right direction.

Installation

Add stories to your list of dependencies in mix.exs:

def deps do
[
  {:stories, "~> 0.1.0"}
]
end

Add your Stories API key to your config.ex

import Config

config :stories,
    acccess_token: "asdfqwer1234"

Basic Usage

Get list of users:

  iex> users = Stories.User.list()
  iex> [%Stories.User{}] = users

Create an event:

  iex> event = Stories.Event.create(%{
  ...>    user_id: "f3111ed7-9372-453e-8838-19ab2de8adc0",
  ...>    name: "A developer tested the Elixir Stories API wrapper"
  ...>  })
  iex> %Stories.Event{} = event

About

📓 Elixir wrapper for the Stories API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages