sign in
Home | Updates | Pages | Users | Admin | Help
Comparing version 12 and version 11 back

[[API Documentation|Back to API Docs]]


h2. Actions
* GET https://thecampuswire.com/organization/org_name/messages.xml - retrieve a list of all messages
* GET https://thecampuswire.com/messages/1.xml - gets an individual message
* POST https://thecampuswire.com/organization/org_name/messages.xml - creates a new message
* PUT https://thecampuswire.com/messages/1.xml - updates a message
* DELETE https://thecampuswire.com/messages/1.xml - deletes a message

h3. GET /organizations/org_name/messages.xml
Here is example of a message list


  
    
    
    All schools are in lockdown due to an emergency situation.
    2007-09-05T01:50:42-05:00
    
    171
    129
    
    
    false
    false
    true
    false
    Lockdown
    2007-09-05T01:50:42-05:00
    149
    1
  
  
    78238
    
    Due to snow, all classes are cancelled today.
    2007-09-05T01:49:47-05:00
    
    170
    129
    
    
    false
    true
    true
    true
    Snow Day
    2007-09-05T01:49:47-05:00
    149
    1
  

Note: The message list, and individual messages _may_ be retrieved *without* authentication. If the user is not authenticated or not an administrator they will not get all of the message detail. h3. GET /messages/171.xml


  
  
  All schools are in lockdown due to an emergency situation.
  2007-09-05T01:50:42-05:00
  
  171
  129
  
  
  false
  false
  true
  false
  Lockdown
  2007-09-05T01:50:42-05:00
  149
  1

h3. POST /organizations/org_name/messages.xml (create a new message)
test messagethis is a testtrue
h4. Valid attributes ** title (_required_) ** content (_required_) ** send-callsend_to_all (_required_) ** send-emailsend_call ** send-smssend_email ** send_sms p. Note: You cannot specify which individual messages to send the message to via the API like you can do on the website h3. PUT /messages/171.xml (update an existing message)
test messagethis is a test
h4. Valid attributes ** title ** content
Powered by JunebugWiki v0.0.37