public interface IFriendAdapter extends IServiceAdapter, IBridgingServiceAdapter
Implementations of this interface must ensure that the following property are set and can be retrieved.
Property: /config/soccom/bridging/adapter/impl/<name>/friend
Value: A string that contains the fully qualified name of the class that implements the IFriendAdapter interface.
Where: <name> is the short name used to identify this implementation.
Example: /config/soccom/bridging/adapter/impl/facebook/friend = "com.ibm.commerce.soccom.bridging.facebook.FacebookFriendAdapter"
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
Copy Right Statement
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> | getFriendDetails(java.lang.String[] friendIds)
Gets friend information such as display name and photo URL for the given friendIds.
|
java.util.List<java.util.Map<java.lang.String,java.lang.String>> | getFriends(int maxFriendsAllowed)
Gets a list of friends for the user who is currently authenticated.
|
static final java.lang.String COPYRIGHT
java.util.List<java.util.Map<java.lang.String,java.lang.String>> getFriends(int maxFriendsAllowed) throws AdapterException
Response example:
{"status":200,"message":"","data":[{"personId":"id1" ,"extType":"example"},{"personId":"id2","extType":"example"}, {"personId":"id3","extType":"example"}]}
java.util.List<java.util.Map<java.lang.String,java.lang.String>> getFriendDetails(java.lang.String[] friendIds) throws AdapterException
Response example:
{"status":200,"message":"","data":[{"personId":"id1", "profilePictureURL":"http://host:port/example.jpg","name":"example", "extType":"example"},{"personId":"id2","profilePictureURL": "http://host:port/photo.jpg","name":"example","extType":"example"}]}