GET api/v1.0/Friends/GetAcceptedFriendRequests?daysBack={daysBack}

Returns a list of Accepted Friend Request records.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
daysBack

Number of days prior to search for Friend Requests.

integer

Required

Body Parameters

None.

Response Information

Resource Description

List of Accepted Friend Requests.

Collection of Friend
NameDescriptionTypeAdditional information
FirstName

If the Current Contact is the SENDER of the Friend Request, the RECIPIENT's first name. If the Current Contact is the RECIPIENT of the Friend Request, the SENDER's first name.

string

Required

LastName

If the Current Contact is the SENDER of the Friend Request, the RECIPIENT's last name. If the Current Contact is the RECIPIENT of the Friend Request, the SENDER's last name.

string

Required

DisplayName

If the Current Contact is the SENDER of the Friend Request, the RECIPIENT's display name. If the Current Contact is the RECIPIENT of the Friend Request, the SENDER's display name.

string

Required

LinkToProfile

If the Current Contact is the SENDER of the Friend Request, the link to the RECIPIENT's profile page. If the Current Contact is the RECIPIENT of the Friend Request, the link to the SENDER's profile page.

string

None.

LinkToSmallImage

If the Current Contact is the SENDER of the Friend Request, the link to the RECIPIENT's small image. If the Current Contact is the RECIPIENT of the Friend Request, the link to the SENDER's small image.

string

None.

LinkToLargeImage

If the Current Contact is the SENDER of the Friend Request, the link to the RECIPIENT's large image. If the Current Contact is the RECIPIENT of the Friend Request, the link to the SENDER's large image.

string

None.

IsCompany

If the Current Contact is the SENDER of the Friend Request, if the RECIPIENT is a company. If the Current Contact is the RECIPIENT of the Friend Request, if the SENDER is a company.

boolean

None.

FriendRequestRecordKey

Unique Identifier for the friend request.

globally unique identifier

None.

IsActive

If the friend request is active.

boolean

None.

RequestorContactKey

This field is deprecated, please use RequestedByContactKey instead.

globally unique identifier

None.

RequestedByContactKey

Contact key of the user who initiated the friend request.

globally unique identifier

None.

RequesteeContactKey

Contact key of the user who received the friend request.

globally unique identifier

None.

InvitedOn

DateTime of when friend invite was sent.

date

None.

AcceptedOn

DateTime of when friend invite was accepted. Null if not yet accepted

date

None.

RequestedDate

DateTime of when friend invite was created. Typically synonymous with InvitedOn.

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "FirstName": "sample string 1",
    "LastName": "sample string 2",
    "DisplayName": "sample string 3",
    "LinkToProfile": "sample string 4",
    "LinkToSmallImage": "sample string 5",
    "LinkToLargeImage": "sample string 6",
    "IsCompany": true,
    "FriendRequestRecordKey": "25370dab-edf5-466f-be82-5c5dd37e268e",
    "IsActive": true,
    "RequestorContactKey": "f883ba90-36ae-4213-8a6b-829b9eef138d",
    "RequestedByContactKey": "5897b2fd-4b76-483a-8c64-678902d58c32",
    "RequesteeContactKey": "ce5e00f7-3eff-4254-aa1b-1ec92309df54",
    "InvitedOn": "2024-12-22T11:22:34.0047509Z",
    "AcceptedOn": "2024-12-22T11:22:34.0047509Z",
    "RequestedDate": "2024-12-22T11:22:34.0047509Z"
  },
  {
    "FirstName": "sample string 1",
    "LastName": "sample string 2",
    "DisplayName": "sample string 3",
    "LinkToProfile": "sample string 4",
    "LinkToSmallImage": "sample string 5",
    "LinkToLargeImage": "sample string 6",
    "IsCompany": true,
    "FriendRequestRecordKey": "25370dab-edf5-466f-be82-5c5dd37e268e",
    "IsActive": true,
    "RequestorContactKey": "f883ba90-36ae-4213-8a6b-829b9eef138d",
    "RequestedByContactKey": "5897b2fd-4b76-483a-8c64-678902d58c32",
    "RequesteeContactKey": "ce5e00f7-3eff-4254-aa1b-1ec92309df54",
    "InvitedOn": "2024-12-22T11:22:34.0047509Z",
    "AcceptedOn": "2024-12-22T11:22:34.0047509Z",
    "RequestedDate": "2024-12-22T11:22:34.0047509Z"
  }
]

application/xml, text/xml

Sample:
<ArrayOfFriend xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HigherLogic.API.Models.Enterprise">
  <Friend>
    <AcceptedOn>2024-12-22T06:22:34.0047509-05:00</AcceptedOn>
    <DisplayName>sample string 3</DisplayName>
    <FirstName>sample string 1</FirstName>
    <FriendRequestRecordKey>25370dab-edf5-466f-be82-5c5dd37e268e</FriendRequestRecordKey>
    <InvitedOn>2024-12-22T06:22:34.0047509-05:00</InvitedOn>
    <IsActive>true</IsActive>
    <IsCompany>true</IsCompany>
    <LastName>sample string 2</LastName>
    <LinkToLargeImage>sample string 6</LinkToLargeImage>
    <LinkToProfile>sample string 4</LinkToProfile>
    <LinkToSmallImage>sample string 5</LinkToSmallImage>
    <RequestedByContactKey>5897b2fd-4b76-483a-8c64-678902d58c32</RequestedByContactKey>
    <RequestedDate>2024-12-22T06:22:34.0047509-05:00</RequestedDate>
    <RequesteeContactKey>ce5e00f7-3eff-4254-aa1b-1ec92309df54</RequesteeContactKey>
    <RequestorContactKey>f883ba90-36ae-4213-8a6b-829b9eef138d</RequestorContactKey>
  </Friend>
  <Friend>
    <AcceptedOn>2024-12-22T06:22:34.0047509-05:00</AcceptedOn>
    <DisplayName>sample string 3</DisplayName>
    <FirstName>sample string 1</FirstName>
    <FriendRequestRecordKey>25370dab-edf5-466f-be82-5c5dd37e268e</FriendRequestRecordKey>
    <InvitedOn>2024-12-22T06:22:34.0047509-05:00</InvitedOn>
    <IsActive>true</IsActive>
    <IsCompany>true</IsCompany>
    <LastName>sample string 2</LastName>
    <LinkToLargeImage>sample string 6</LinkToLargeImage>
    <LinkToProfile>sample string 4</LinkToProfile>
    <LinkToSmallImage>sample string 5</LinkToSmallImage>
    <RequestedByContactKey>5897b2fd-4b76-483a-8c64-678902d58c32</RequestedByContactKey>
    <RequestedDate>2024-12-22T06:22:34.0047509-05:00</RequestedDate>
    <RequesteeContactKey>ce5e00f7-3eff-4254-aa1b-1ec92309df54</RequesteeContactKey>
    <RequestorContactKey>f883ba90-36ae-4213-8a6b-829b9eef138d</RequestorContactKey>
  </Friend>
</ArrayOfFriend>