Development Notes

Camera Overlay

Web App

  • security design questions
    -Nathan has posited each user have a unique WordPress ID (What are the security implications here? For example, now, or in future might a user access via their Facebook ID if it is connected to WordPress?)
  • plug-ins
    -Edit Flow
    -JSON API (custom)
    -Custom Functions file (theme)
  • API
    -JSON
    -Allows post and comment retrieval
    -Allows post creation
    Example API Calls
Creating a post:
  1. A nonce is required to create a post: curl 'http://mrapp.alive.in/?json=get_nonce&controller=posts&method=create_post'
    Expected Response: {"status":"ok","controller":"posts","method":"create_post","nonce":"123ab456c7"}
  2. Now we can use the nonce to create a new post (For this example we are only creating a title and an embedded youtube video) : curl 'http://mrapp.alive.in/?json=create_post&nonce=123ab456c7&title=Story%20Title&external_media_source=youtube&media_guid=dQw4w9WgXcQ&status=draft&author=storymakeruser&user_password=thisismyrealpassword'
    Expected Response: {"status":"ok","post":{"id":7,"type":"post","slug":"","url":"https:\/\/mrapp.alive.in\/?p=7","status":"draft","title":"story title","title_plain":"story title","content":"","excerpt":"","date":false,"modified":"2012-09-19 00:32:34","categories":[],"tags":[],"author":{"id":1,"slug":"storymakeruser","name":"storymakeruser","first_name":"","last_name":"","nickname":"storymakeruser","url":"","description":""},"comments":[],"attachments":[],"comment_count":0,"comment_status":"open"}}
Retrieving Content:
  1. Ask for a Post: curl 'http://mrapp.alive.in/?json=get_post&post_id=217&custom_fields=media_value,medium'
    Expected Response: {"status":"ok","post":{"id":7,"type":"post","slug":"story-title","url":"http:\/\/mrapp.alive.in\/story-title\/","status":"draft","title":"Story Title","title_plain":"Story Title","content":"","excerpt":"","date":"2012-09-18 20:06:35","modified":"2012-09-18 20:06:35","categories":[],"tags":[],"author":{"id":1,"slug":"storymakeruser","name":"storymakeruser","first_name":"","last_name":"","nickname":"storymakeruser","url":"","description":""},"comments":[],"attachments":[],"comment_count":0,"comment_status":"open","custom_fields":{"media_value":["youtube"],"medium":["Video"]}}}

Also available in: PDF HTML TXT