Raplets API

Raplet configuration parameters, described on this page, have been deprecated. We will continue to support them until at least February 2012. New Raplets should use the OAuth2-based configuration protocol instead, which provides greater control and a better user experience.

Configuration parameters

If your Raplet needs to be configured, you can specify a configuration property in the metadata object. When a user installs your Raplet, the configuration property is translated into a form on the install dialog, and Rapportive captures the user’s input on your behalf. Rapportive stores the user’s settings and includes the values as query parameters on every Raplet request.

The configuration property should contain a JSON array, each element of which is a JSON object with the following properties:

For example, a metadata response with configuration parameters may look as follows:

jsonp123456789({
    "name": "Transmogrifier",
    /* ... other metadata properties omitted for readability ... */
    "configuration": [
        {
            "name": "magic_token",
            "type": "text",
            "description": "Your magic token (please copy and paste from <a href=\"http://example.com/account\">your account page</a>)"
        }, {
            "name": "secret",
            "type": "password",
            "description": "Your secret incantation",
            "required": true
        }
    ]
})

We ask you to keep the configuration as minimal and simple as possible. (The fewer settings a user can change, the less confusing they will find the experience of adding your Raplet, and the fewer mistakes they can make.) Only ask for things for which you cannot provide defaults, such as login details or user-specific API keys.