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 }
// endpoint = teamURL/conversation/create
. post ( endpoint , { c, w_id } )
// endpoint = teamURL/conversation/delete
. post ( endpoint , { w_id, c_id } )
// endpoint = teamURL/conversation/all
. post ( endpoint , { w_id)
// endpoint = teamURL/conversation/edit
. post ( endpoint , { c, c_id} )
// endpoint = teamURL/users/all
. post ( endpoint , { w_id } )
// endpoint = teamURL/users/find
. post ( endpoint , { w_id, String : searchTerm } )
// 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