API Methods
Account ...
Blogs ...
Bookings ...
CreditHistory ...
Dashboard ...
DirectCam ...
DirectChat ...
Email ...
FieldReport ...
Groups ...
HotLists ...
Interview ...
Lists ...
Movie ...
Newsfeed ...
PhoneChat ...
Pictures ...
Profile ...
Search ...
Tours ...
Webcam ...

Save PhoneChat Settings

Use this method to save the Phone Chat settings used by the performer.

URL / Endpoint

Need help with Postman?

POST /v1/PhoneChat/SaveSettings

POST /v1/Groups/PhoneChat/SaveSettings (See Group manager)

Request

PropertyTypeDescription
OfferDirectChat boolean Required. Indicates this user wishes to participate in the DirectChat scheme.
DirectChat aws:DirectChatSettings All settings directly related to DirectChat. This can only be and must be provided if OfferDirectChat is true.
PhoneChatNumber string The phone number provided by the user, which users will be able to call when they have confirmed a Phone Chat booking. If a phone number is not supplied, the user will be required to call the client using the number the client supplies. This contains only numbers with an optional +, and must contain a country code.
PhoneChatPPM decimal Required. The amount, in Credits, that the user wishes to charge for normal Phone Chat calls, per minute.

Group manager

If the authenticated user is the manager of a group, the user can impersonate another member of the group. This allows the manager to perform tasks of other group members without having to authenticate as them.

The request can be build in the same way as the regular request, but targeted towards the Group manager endpoint. Additionally, it has the following extra parameters:

PropertyTypeDescription
UserID integer Required. The ID of a member in the group that will be impersonated for this request.

Request Information

HTTP Method / Verb

Parameters can be passed to this operation using the HTTP POST method with serialized JSON in the request body.

Headers

The REST API uses HTTP request headers to determine what data type is returned or to authenticate the developer's API key. More information can be found in the overview section.

Authentication

An Authorization header is required with every request and must contain the access_token of the user. More information can be found in the Access tokens page.

Scopes

This endpoint requires the following scope:

Scope
account_phonechat_bookings

Samples

POST method

https://api-sandbox.adultwork.com/v1/PhoneChat/SaveSettings

Authorization: bearer {your-access-token}
{ "OfferDirectChat": true, "DirectChat": { "DirectChatOnly": false, "DirectChatNumber": "44...", "DirectChatPPM": 0.75 }, "PhoneChatNumber": "44...", "PhoneChatPPM": 0.6 }

POST as Group manager

https://api-sandbox.adultwork.com/v1/Groups/PhoneChat/SaveSettings

Authorization: bearer {your-access-token}
{ "UserID": 123456, "OfferDirectChat": true, "DirectChat": { "DirectChatOnly": false, "DirectChatNumber": "44...", "DirectChatPPM": 0.75 }, "PhoneChatNumber": "44...", "PhoneChatPPM": 0.6 }

Response

PropertyTypeDescription
OfferDirectChat boolean Indicates this user wishes to participate in the DirectChat scheme.
DirectChat aws:DirectChatSettings All settings directly related to DirectChat. This will only be provided if OfferDirectChat is true.
PhoneChatNumber string The phone number provided by the user, which users will be able to call when they have confirmed a Phone Chat booking. If a phone number is not supplied, the user will be required to call the client using the number the client supplies.
ShowPhoneChatNumber boolean Indicates this user wants their PhoneChatNumber to appear on their profile page and emails. There is a charge for displaying their number.
PhoneChatPPM decimal The amount, in Credits, that the user wishes to charge for normal Phone Chat calls, per minute.

Response Sample

The following example returns a result of a users' settings.

{
    "OfferDirectChat": true,
    "DirectChat": {
        "DirectChatOnly": false,
        "DirectChatNumber": "44...",
        "DirectChatPPM": 0.75
    },
    "PhoneChatNumber": "44...",
    "ShowPhoneChatNumber": false,
    "PhoneChatPPM": 0.6
}
<PhoneChatSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models.PhoneChat">
    <DirectChat>
        <DirectChatNumber>44...</DirectChatNumber>
        <DirectChatOnly>false</DirectChatOnly>
        <DirectChatPPM>0.7500</DirectChatPPM>
    </DirectChat>
    <OfferDirectChat>true</OfferDirectChat>
    <PhoneChatNumber>44...</PhoneChatNumber>
    <PhoneChatPPM>0.6000</PhoneChatPPM>
    <ShowPhoneChatNumber>false</ShowPhoneChatNumber>
</PhoneChatSettings>