A wrapper for the Connections API.
Example
// retrieve the sessioned user
var user:YahooUser = _session.getSessionedUser();
// add connections response event listeners
user.connections.addEventListener(YahooResultEvent.GET_CONNECTIONS_SUCCESS, handleConnectionsSuccess);
user.connections.addEventListener(YahooResultEvent.GET_CONNECTIONS_FAILURE, handleConnectionsFailure);
user.connections.getConnections(0,50);
function handleConnectionsSuccess(event:YahooResultEvent):void
{
var connections:Array = event.data as Array;
// do something
}
function handleConnectionsFailure(event:YahooResultEvent):void
{
// do something
}
public function ConnectionsRequest()
Class constructor.
Creates a new ConnectionsRequest object for the provided user.
public function getConnections(start:int, count:int):void
Retrieves a list of connections for this user.
Parameters
| start:int — Defines the starting point of the search.
|
| |
| count:int — Defines the number of connections to return.
|
Event object type: YahooResultEvent
Dispatched when the getConnections request fails.
Event object type: YahooResultEvent
Dispatched when the getConnections request executes successfully.