Skip to content

wepow:application:response

Andres Freyria edited this page Aug 16, 2017 · 2 revisions

wepow:application:response

This resource is a collection of links to the web application where the answer of a candidate can be seen. Any of the following links might be present:

Standard

This link has the key "name" : "standard", and leads to the candidate's response in the Wepow's web application. If the users are not logged into Wepow, they will be prompted to do so before being redirected.

Iframe

This link has the key "name" : "iframe", and leads to a read-only view of the candidate's response in the Wepow's web application, which authenticates the current user via URL tokens. If the user has previously logged in, he or she will have access to write permissions as well.

Due to security measures, this link is only valid once and for a limited amount of time, so it should not be stored for later use. Every time this resource is present, the link's tokens will be regenerated to ensure freshness.

Since this link leads to a minimalist version (both visually and in terms of functionality) of the candidate's response, it is intended for embedding purposes as an iframe inside other applications.

Example

"wepow:application:response": [
  {
    "href": "https://wepow.lvh.me/en/applications/4fbe6/answers/0012",
    "name": "standard"
  },
  {
    "href": "https://wepow.lvh.me/en/applications/4fbe6/answers/0012?auth_token=2e3d&layout=iframe",
    "name": "iframe"
  }
]