API

Methods / get_contexts

There are two ways to use this method. Firstly you can look up what you trust a user for. Secondly, you can look up what someone else trusts a user for.

To look up what you trust a user for, authenticate with your remote key over https and omit the user parameter. To lookup what someone else trusts a user for, pass their contextual identifier in as the user parameter. For example, user=@thruflo&trusted_user=@tav will return the tags that @thruflo trusts @tav for.

Syntax Equivalent

what does @user trust @user for?

URL

http(s)://trustmap.appspot.com/api/v1/get_contexts

Authentication

Remote key authentication is optional.

Parameters

- user: the contextual identifier of the user who's trustmap you want to query
- trusted_user: the contextual identifier of the trusted user

Example

http://trustmap.appspot.com/api/v1/get_contexts?user=%40thruflo&trusted_user=%40tav

Response example

{
  "last_key":null,
  "results":[
      "dancing",
      "foo"
    }
  ]
}