Giter VIP home page Giter VIP logo

heyteamapi's Introduction

Hey-Team Route Documentation

const teamURL = 'https://hey-test-team.herokuapp.com'
const w_id = <Workspace id>
const c_id = <Conversation id>
const c = <Conversation obj> === { title, questions, members, schedule }
/** Example schedule object
*   time is a string datatype with hr and min seperated by a colon :
*   single digit values for hr must not contain preceding zero
*/
schedule: {sun: false, mon: true, ..., time: "8:15", modifier: "AM", tz: -5}

Create a Conversation

// endpoint = teamURL/conversation/create
.post(endpoint, { c, w_id })

Delete a Conversation

// endpoint = teamURL/conversation/delete
.post(endpoint, { w_id, c_id })

Get All Conversations

// endpoint = teamURL/conversation/all
.post(endpoint, {w_id)

Edit a Conversation

// endpoint = teamURL/conversation/edit
.post(endpoint, {c, c_id})

Grab All Members

// endpoint = teamURL/users/all
.post(endpoint, { w_id })

Grab Specific Member

// endpoint = teamURL/users/find
.post(endpoint, { w_id, String: searchTerm })

Send Email

// endpoint = teamURL/account/email
.post(endpoint, { w_id, participants, context })

Where:
Context = the body of the email sent to participants
Participants = Member ids from the selected members of that conversation

heyteamapi's People

Contributors

cosmonautjones avatar davdaarn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.