POST api/Credit/AddFriend

Request Information

URI Parameters

None.

Body Parameters

Credit_FriendInfo
NameDescriptionTypeAdditional information
FriendInfoId

string

None.

SelfMobile

string

None.

SelfNickName

string

None.

FriendMobile

string

None.

FriendNickName

string

None.

CreateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "FriendInfoId": "sample string 1",
  "SelfMobile": "sample string 2",
  "SelfNickName": "sample string 3",
  "FriendMobile": "sample string 4",
  "FriendNickName": "sample string 5",
  "CreateTime": "2025-06-14T21:57:14.5882495+08:00"
}

application/xml, text/xml

Sample:
<Credit_FriendInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BPMS.Entity">
  <CreateTime>2025-06-14T21:57:14.5882495+08:00</CreateTime>
  <FriendInfoId>sample string 1</FriendInfoId>
  <FriendMobile>sample string 4</FriendMobile>
  <FriendNickName>sample string 5</FriendNickName>
  <SelfMobile>sample string 2</SelfMobile>
  <SelfNickName>sample string 3</SelfNickName>
</Credit_FriendInfo>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Credit_FriendInfo'.

Response Information

Resource Description

ApiResult
NameDescriptionTypeAdditional information
code

integer

None.

msg

string

None.

errMsg

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2",
  "errMsg": "sample string 3",
  "data": {}
}

application/xml, text/xml

Sample:
<ApiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BPMS.OpenApi.Model.ManageBase">
  <code>1</code>
  <data />
  <errMsg>sample string 3</errMsg>
  <msg>sample string 2</msg>
</ApiResult>