==============
using requests >2.4 - install instructions here: http://docs.python-requests.org/en/latest/user/install/
at = personal Access Token (see https://developer.ciscospark.com/getting-started.html)
Basically call the functions below and get a Python dictionary of the JSON back. You can then print the raw dictionary and choose the specific return fields you want to parse.
This is an example of getting a Display Name from the Spark API from the personID:
resp_dict2=pyCiscoSpark.get_persondetails(accesstoken,personid)
print resp_dict2['displayName']
###example.py Python example to show room members and print the text messages in a specified room execute via "python example.py access_token_string"
###example2.py Searches for a specified room and then posts a designated message
###createwebhook.py creates webhook to watch for new messages in a room
Sample PHP script to receive notifications from created webhook
Sample python script to act on notifications by posting a message back to room in response (bot example)
Sample "bot" script. prefix a query or question with Google in a room and it responds with top 2 Google search results and links. Requires ciscospark.php or similar to call it in response to created webhook.
List People in your Organization - max default is 10 you need to enter an email or displayName or Spark will send an error
Get Person Details
Get your Details
Get a list of rooms in which you are a member
Get room details
Get membership list
Get membership details
Get list of messages
Get details of a specific message - useful for reading the text
list registered webhooks
get webhook info
Create a room with title
Post a message to a room (text only right now - see post_file)
Posts a file to a room
Add a person to a room
Create a webhook
Change a room's title
change a member's moderator status
Change the targetURL or name for a webhook
Delete a room
Leave a room
Delete a message
Delete a webhook