Needio.Services

<back to all web services

GetMyUserSettingsRequest

Requires Authentication
The following routes are available for this service:
All Verbs/User/GetMyUserSettings/
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
GetMyUserSettingsResponse Parameters:
NameParameterData TypeRequiredDescription
UserSettingsformUserSettingsDTONo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
UserSettingsDTO Parameters:
NameParameterData TypeRequiredDescription
UserIdformintNo
AllowCommercialMessageformboolNo
SWhenNewPostFollowformboolNo
SWhenNewUserFollowformboolNo
SWhenNewPostLikeformboolNo
SWhenNewOrderformboolNo
SWhenPaymentApprovedformboolNo
SWhenPaymentRejectedformboolNo
SWhenOrderRatedformboolNo
SWhenPostExpireformboolNo
BWhenPostPriceDecreaseformboolNo
BWhenNewFollowedUserPostformboolNo
BWhenNewCampaignNearMeformboolNo
BWhenNewCampaignDistanceformintNo
BWhenNewCampaignPostTypesformstringNo
BWhenOrderApproveRequiredformboolNo
BWhenOrderRateRequiredformboolNo
WhenNewMessageformboolNo
SendDailyReportformboolNo
GetMyUserSettingsResponse Parameters:
NameParameterData TypeRequiredDescription
UserSettingsformUserSettingsDTONo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /User/GetMyUserSettings/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetMyUserSettingsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetMyUserSettingsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel">
  <Error>
    <ErrorCode>String</ErrorCode>
    <ErrorDescription>String</ErrorDescription>
    <ErrorYn>false</ErrorYn>
  </Error>
  <ResMessage>String</ResMessage>
  <Result>false</Result>
  <UserSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.Models">
    <d2p1:AllowCommercialMessage>false</d2p1:AllowCommercialMessage>
    <d2p1:BWhenNewCampaignDistance>0</d2p1:BWhenNewCampaignDistance>
    <d2p1:BWhenNewCampaignNearMe>false</d2p1:BWhenNewCampaignNearMe>
    <d2p1:BWhenNewCampaignPostTypes>String</d2p1:BWhenNewCampaignPostTypes>
    <d2p1:BWhenNewFollowedUserPost>false</d2p1:BWhenNewFollowedUserPost>
    <d2p1:BWhenOrderApproveRequired>false</d2p1:BWhenOrderApproveRequired>
    <d2p1:BWhenOrderRateRequired>false</d2p1:BWhenOrderRateRequired>
    <d2p1:BWhenPostPriceDecrease>false</d2p1:BWhenPostPriceDecrease>
    <d2p1:SWhenNewOrder>false</d2p1:SWhenNewOrder>
    <d2p1:SWhenNewPostFollow>false</d2p1:SWhenNewPostFollow>
    <d2p1:SWhenNewPostLike>false</d2p1:SWhenNewPostLike>
    <d2p1:SWhenNewUserFollow>false</d2p1:SWhenNewUserFollow>
    <d2p1:SWhenOrderRated>false</d2p1:SWhenOrderRated>
    <d2p1:SWhenPaymentApproved>false</d2p1:SWhenPaymentApproved>
    <d2p1:SWhenPaymentRejected>false</d2p1:SWhenPaymentRejected>
    <d2p1:SWhenPostExpire>false</d2p1:SWhenPostExpire>
    <d2p1:SendDailyReport>false</d2p1:SendDailyReport>
    <d2p1:UserId>0</d2p1:UserId>
    <d2p1:WhenNewMessage>false</d2p1:WhenNewMessage>
  </UserSettings>
</GetMyUserSettingsResponse>