GET Search/AutoSuggest

поиск в AutoSuggest возвращаются всегда пустые списки (не null) если type=MyContactsAndGroups, то ищет среди моих контактов и групп если type=OtherContactsAndGroups, то ищет среди чужих контактов и групп, (myContacts,myGroups - пустые списки) если в строке поиска wmid, то вернется 1 элемент либо в myContacts, либо в otherContacts при type=MyContactsAndGroups, либо список в otherGroups при type=OtherContactsAndGroups

Request Information

URI Parameters

NameDescriptionTypeAdditional information
query

строка поиска

string

Required

type

тип поиска

integer

Default value is 0

Body Parameters

None.

Response Information

Resource Description

AutoSuggestResultView
NameDescriptionTypeAdditional information
myContacts

Collection of AutoSuggesUserPublicDataView

None.

otherContacts

Collection of AutoSuggesUserPublicDataView

None.

myGroups

Collection of AutoSuggestGroupView

None.

otherGroups

Collection of AutoSuggestGroupView

None.

Response Formats

application/json, text/json

Sample:
{
  "myContacts": [
    {
      "foundNickname": "sample string 1",
      "attestat": "sample string 2",
      "attestatCode": 1,
      "bl": 1,
      "tl": 3,
      "cl": 1,
      "Gender": 0,
      "GenderStr": "female",
      "lastLoginDate": "sample string 4",
      "lastLoginDateUtc": "sample string 5",
      "lastOnlineDate": "sample string 6",
      "lastOnlineDateUtc": "sample string 7",
      "status": 0,
      "statusStr": "active",
      "interactOpportunity": true,
      "userType": 0,
      "icon": {
        "id": "sample string 1",
        "isactive": true,
        "isDefault": true,
        "smallest": "sample string 4",
        "tiny": "sample string 5",
        "mini": "sample string 6",
        "small": "sample string 7",
        "normal": "sample string 8",
        "large": "sample string 9",
        "big": "sample string 10",
        "original": "sample string 11",
        "url": "sample string 12"
      },
      "nickname": "sample string 9",
      "wmid": "sample string 10"
    },
    {
      "foundNickname": "sample string 1",
      "attestat": "sample string 2",
      "attestatCode": 1,
      "bl": 1,
      "tl": 3,
      "cl": 1,
      "Gender": 0,
      "GenderStr": "female",
      "lastLoginDate": "sample string 4",
      "lastLoginDateUtc": "sample string 5",
      "lastOnlineDate": "sample string 6",
      "lastOnlineDateUtc": "sample string 7",
      "status": 0,
      "statusStr": "active",
      "interactOpportunity": true,
      "userType": 0,
      "icon": {
        "id": "sample string 1",
        "isactive": true,
        "isDefault": true,
        "smallest": "sample string 4",
        "tiny": "sample string 5",
        "mini": "sample string 6",
        "small": "sample string 7",
        "normal": "sample string 8",
        "large": "sample string 9",
        "big": "sample string 10",
        "original": "sample string 11",
        "url": "sample string 12"
      },
      "nickname": "sample string 9",
      "wmid": "sample string 10"
    }
  ],
  "otherContacts": [
    {
      "foundNickname": "sample string 1",
      "attestat": "sample string 2",
      "attestatCode": 1,
      "bl": 1,
      "tl": 3,
      "cl": 1,
      "Gender": 0,
      "GenderStr": "female",
      "lastLoginDate": "sample string 4",
      "lastLoginDateUtc": "sample string 5",
      "lastOnlineDate": "sample string 6",
      "lastOnlineDateUtc": "sample string 7",
      "status": 0,
      "statusStr": "active",
      "interactOpportunity": true,
      "userType": 0,
      "icon": {
        "id": "sample string 1",
        "isactive": true,
        "isDefault": true,
        "smallest": "sample string 4",
        "tiny": "sample string 5",
        "mini": "sample string 6",
        "small": "sample string 7",
        "normal": "sample string 8",
        "large": "sample string 9",
        "big": "sample string 10",
        "original": "sample string 11",
        "url": "sample string 12"
      },
      "nickname": "sample string 9",
      "wmid": "sample string 10"
    },
    {
      "foundNickname": "sample string 1",
      "attestat": "sample string 2",
      "attestatCode": 1,
      "bl": 1,
      "tl": 3,
      "cl": 1,
      "Gender": 0,
      "GenderStr": "female",
      "lastLoginDate": "sample string 4",
      "lastLoginDateUtc": "sample string 5",
      "lastOnlineDate": "sample string 6",
      "lastOnlineDateUtc": "sample string 7",
      "status": 0,
      "statusStr": "active",
      "interactOpportunity": true,
      "userType": 0,
      "icon": {
        "id": "sample string 1",
        "isactive": true,
        "isDefault": true,
        "smallest": "sample string 4",
        "tiny": "sample string 5",
        "mini": "sample string 6",
        "small": "sample string 7",
        "normal": "sample string 8",
        "large": "sample string 9",
        "big": "sample string 10",
        "original": "sample string 11",
        "url": "sample string 12"
      },
      "nickname": "sample string 9",
      "wmid": "sample string 10"
    }
  ],
  "myGroups": [
    {
      "foundName": "sample string 1",
      "synonym": "sample string 2",
      "descfull": "sample string 3",
      "descshort": "sample string 4",
      "createdate": "sample string 5",
      "createdatestr": "sample string 6",
      "datelastactivity": "sample string 7",
      "datelastactivitystr": "sample string 8",
      "cover": "sample string 9",
      "icons": [
        {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        },
        {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        }
      ],
      "outsideurl": "sample string 10",
      "groupType": 0,
      "groupTypeStr": "Regular",
      "restriction": {
        "type": 0,
        "typeStr": "postEvent",
        "businessLevelMin": 1
      },
      "category": {
        "categoryId": 1,
        "subCategoryId": 2
      },
      "enabled": true,
      "state": 0,
      "visibility": "sample string 12",
      "visibilityValue": 0,
      "name": "sample string 13",
      "uid": "sample string 14"
    },
    {
      "foundName": "sample string 1",
      "synonym": "sample string 2",
      "descfull": "sample string 3",
      "descshort": "sample string 4",
      "createdate": "sample string 5",
      "createdatestr": "sample string 6",
      "datelastactivity": "sample string 7",
      "datelastactivitystr": "sample string 8",
      "cover": "sample string 9",
      "icons": [
        {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        },
        {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        }
      ],
      "outsideurl": "sample string 10",
      "groupType": 0,
      "groupTypeStr": "Regular",
      "restriction": {
        "type": 0,
        "typeStr": "postEvent",
        "businessLevelMin": 1
      },
      "category": {
        "categoryId": 1,
        "subCategoryId": 2
      },
      "enabled": true,
      "state": 0,
      "visibility": "sample string 12",
      "visibilityValue": 0,
      "name": "sample string 13",
      "uid": "sample string 14"
    }
  ],
  "otherGroups": [
    {
      "foundName": "sample string 1",
      "synonym": "sample string 2",
      "descfull": "sample string 3",
      "descshort": "sample string 4",
      "createdate": "sample string 5",
      "createdatestr": "sample string 6",
      "datelastactivity": "sample string 7",
      "datelastactivitystr": "sample string 8",
      "cover": "sample string 9",
      "icons": [
        {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        },
        {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        }
      ],
      "outsideurl": "sample string 10",
      "groupType": 0,
      "groupTypeStr": "Regular",
      "restriction": {
        "type": 0,
        "typeStr": "postEvent",
        "businessLevelMin": 1
      },
      "category": {
        "categoryId": 1,
        "subCategoryId": 2
      },
      "enabled": true,
      "state": 0,
      "visibility": "sample string 12",
      "visibilityValue": 0,
      "name": "sample string 13",
      "uid": "sample string 14"
    },
    {
      "foundName": "sample string 1",
      "synonym": "sample string 2",
      "descfull": "sample string 3",
      "descshort": "sample string 4",
      "createdate": "sample string 5",
      "createdatestr": "sample string 6",
      "datelastactivity": "sample string 7",
      "datelastactivitystr": "sample string 8",
      "cover": "sample string 9",
      "icons": [
        {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        },
        {
          "id": "sample string 1",
          "isactive": true,
          "isDefault": true,
          "smallest": "sample string 4",
          "tiny": "sample string 5",
          "mini": "sample string 6",
          "small": "sample string 7",
          "normal": "sample string 8",
          "large": "sample string 9",
          "big": "sample string 10",
          "original": "sample string 11",
          "url": "sample string 12"
        }
      ],
      "outsideurl": "sample string 10",
      "groupType": 0,
      "groupTypeStr": "Regular",
      "restriction": {
        "type": 0,
        "typeStr": "postEvent",
        "businessLevelMin": 1
      },
      "category": {
        "categoryId": 1,
        "subCategoryId": 2
      },
      "enabled": true,
      "state": 0,
      "visibility": "sample string 12",
      "visibilityValue": 0,
      "name": "sample string 13",
      "uid": "sample string 14"
    }
  ]
}