def session(uuid, opts={})
      raw_body = api_call(:post, "session/create", opts.merge({ :uuid => uuid }))
      JSON.parse(raw_body)
    end
def session(uuid, opts={})
      raw_body = api_call(:post, "session/create", opts.merge({ :uuid => uuid }))
      JSON.parse(raw_body)
    end
-- Sessions --
 Public: Create a session, which is a unique id with which you can view
 the document. Sessions expire 60 minutes after they are generated.

   POST https://crocodoc.com/api/v2/session/create

 uuid - The uuid of the document for the session
 opts - Options for the session (default: {}):
        :editable      - Allows users to create annotations and comments
                         while viewing the document (default: false)
        :user          - A user ID and name joined with a comma (e.g.:
                         1337,Peter). The ID should be a non-negative
                         signed 32-bit integer (0 <= ID <= 2,147,483,647)
                         and unique for each user across your
                         application's userbase. The user name will be
                         shown in the viewer to attribute annotations and
                         comments to their author. Required if editable is
                         true
        :filter        - Limits which users' annotations and comments are
                         shown. Possible values are: all, none, or
                         a comma-separated list of user IDs as specified
                         in the user field (default: all)
        :admin         - Allows the user to modify or delete any
                         annotations and comments; including those
                         belonging to other users. By default, users may
                         only modify/delete their own annotations or reply
                         to other users' comments. (default: false)
        :downloadable  - Allows the user to download the original
                         document (default: false)
        :copyprotected - Prevents document text selection. Although
                         copying text will still be technically possible
                         since it's just HTML, enabling this option makes
                         doing so difficult (default: false)
        :demo          - Prevents document changes such as creating,
                         editing, or deleting annotations from being
                         persisted (default: false)

 Examples

   session("6faad04f-5409-4173-87aa-97c1fd1f35ad")
   # => { "session": "CFAmd3Qjm_2ehBI7HyndnXKsDrQXJ7jHCuzcRv" }

 Returns a hash containing the session uuid