Functions - remote function call

From The Socknet

Jump to: navigation, search

remote_function_call is used to suggest to a Provider that it should make a call.

Specification

POST remote_function_call
{ from: { openid: "http://commanding_user.com"
        },
  target: { openid: "http://user_you_should_be_friends_with.com"
          }
  function: "friend_request",
  data: { 
        },
  return: "http://providerB.com/UserB/profile"
}

->
{ redirect: "http://providerA.com/UserA/verify/2353828385"
}

remote_function_call must be called via POST.

The request must include the from field.

The request must include a target field holding a user object or Service object.

The request must include a function field holding a string.

The request must include a data field holding a request object. In the example, there is no specific data required.

The request must include a return field.

The response is a redirect.

Support

Providers must support this function.

Services have no use for this function.

Further Reading

Personal tools