fanso-2.0

auth 5

request authorization eg:

1.fan sign up

2.performer sign up

3.log in
4. forgot password
5. resend email verification

Description

By passing “subscriptionId” - system will process to payment

Body
{ "firstName": "johnn", "lastName": "snow", "email": "user1@mailinator.com", "password": "Ab123456!", "username": "johnnn" }

Description

By passing “subscriptionId” - system will process to payment

Body
KeyValueDescription
firstNameAlex
lastNameB
nameAlex
usernamealex1
emailperformer123@mailinator.com
gendermale
countryUS
passwordAb123456!
idVerification
documentVerification
categoryIds65327a821a414a3969a65e1f

Body
{ "username": "performer123@mailinator.com", "password": "Ab123456!" }

Body
{ "email": "user99@mailinator.com" }

Body
{ "email": "performer123@mailinator.com" }

user-account 4

To manage user profile

Headers
KeyValueDescription
Authorization{{bearer-token}}

Description

To update user info via JWT

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "name": "Test test", "username": "testuser9", "email": "usertest9@example.com", "firstName": "test", "lastName": "test", "gender": "male", "country": "US" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
KeyValueDescription
avatar

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "password": "123123123" }

performer-account 7

To manage performer settings

Headers
KeyValueDescription
Authorization{{bearer-token}}

Description

To update user info via JWT

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "activateWelcomeVideo": true, "address": "", "avatar": "https://api.xfans.xscripts.info/avatars/azzyr-12713070_005_ccf0.jpg", "bio": "Personal Trainer 💪 Here is where you can find everything you need to be in the best shape of your life 😊\nIf you want to get personal and see what no one else does, come on over to my secret place", "bodyType": "slim", "butt": "medium", "city": "Chihu", "country": "TW", "cover": "https://api.xfans.xscripts.info/covers/3rjoi-12713070_003_78dc.jpg", "createdAt": "2021-09-02T08:33:16.947Z", "dateOfBirth": "2021-09-02T08:33:16.947Z", "documentVerificationId": "61b0816157f29252fe97df7e", "email": "chunhoai@mailinator.com", "ethnicity": "asian", "eyes": "blue", "firstName": "Chun", "gender": "male", "hair": "brown", "height": "6'2\" (187.96 cm)", "idVerificationId": "61b0816657f29252fe97df80", "isOnline": 1, "isPerformer": true, "languages": ["Chinese"], "lastName": "Hoai", "monthlyPrice": 55, "name": "Chun li", "phone": "43434335454", "phoneCode": "+1", "pubicHair": "trimmed", "score": 233, "sexualPreference": "female", "state": "Changhwa", "status": "active", "updatedAt": "2021-09-02T08:33:16.947Z", "username": "hunghoai11111", "verifiedAccount": true, "verifiedDocument": true, "verifiedEmail": true, "weight": "103 lbs (46.7 kg)", "welcomeVideoId": "613b2f739e89d973129c83aa", "yearlyPrice": 33, "zipcode": "" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
KeyValueDescription
avatar

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "password": "123123123", "source": "performer" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
KeyValueDescription
welcome-video

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "key": "paypal", "performerId": "61308c4c5a465b0bc32df949", "value": { "email": "test@test.com" } }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "bankAccount": "123123233", "bankName": "VPbank", "country": "AF", "firstName": "asd", "lastName": "asd", "performerId": "61308c4c5a465b0bc32df949" }

performer-profile 3

To get list & performer profile

Query
KeyValueDescription
limit10
offset0



performer-earnings 2

To get earnings of performers

Headers
KeyValueDescription
Authorization{{performer-token}}
Query
KeyValueDescription
limit10
offset0
sortdesc
sortBycreatedAt
sourceType
fromDate
toDate

Headers
KeyValueDescription
Authorization{{performer-token}}
Query
KeyValueDescription
sourceType
fromDate
toDate

payout-request 3

Performer request payout to admin

Headers
KeyValueDescription
Authorization{{performer-token}}
Query
KeyValueDescription
sortdesc
sortByupdatedAt
limit10
offset0

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
{ "source": "performer", "requestTokens": 100, "requestNote": "note to admin", "paymentAccountType": "stripe" }

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
{ "source": "performer", "requestTokens": 99, "requestNote": "note to admin 123", "paymentAccountType": "paypal" }

black-list 3

Performer can add user to her blacklist

Headers
KeyValueDescription
Authorization{{performer-token}}
Query
KeyValueDescription
limit12
offset0

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
{ "reason": "Disturbing", "target": "user", "targetId": "62146ebc56799e4398a8af05" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
q
limit99

video 2

User to get list & details video

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0

Headers
KeyValueDescription
Authorization{{bearer-token}}

feed 3

User get list & newsfeed, vote polls…

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0
performerId609c9888d648ee11cc6bde01
q
fromDate
toDate

Headers
KeyValueDescription
Authorization{{bearer-token}}

Headers
KeyValueDescription
Authorization{{bearer-token}}

User get list & details of gallery

product 2

User get list and details of product

Query
KeyValueDescription
limit12
offset0


To fetch site banners

Query
KeyValueDescription
limit10
offset0

bookmarks 7

To bookmark feed, video, gallery, product or performer

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "action": "favourite", "objectId": "619dcefd958e13d0e451fb44", "objectType": "video" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "action": "favourite", "objectId": "619dcefd958e13d0e451fb44", "objectType": "video" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0

comment 3

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "content": "hahaha", "objectId": "61d6596f45a70db6521516fb", "objectType": "video" }

Query
KeyValueDescription
limit12
offset0
objectTypevideo
objectId61d6596f45a70db6521516fb

Headers
KeyValueDescription
Authorization{{bearer-token}}

payment 2

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
sortdesc
sortByupdatedAt
limit10
offset0

Headers
KeyValueDescription
AuthorizationuLfJQX5iCyCTuA6
Body
{ "paymentGateway": "stripe", "performerId": "65601691662825cf7967ae31", "type": "monthly" }

wallet-transactions 6

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
sortdesc
sortByupdatedAt
limit10
offset0

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ }

subscription 1

To get list of subscription packages

Headers
KeyValueDescription
Content-Typeapplication/json
Query
KeyValueDescription
limit10
offset0
Body
{ "email": "test1@example.com", "username": "testuser1", "name": "Test User", "password": "Ab123123!", "subscriptionPackageId": "" }

user-order 2

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
sortdesc
sortByupdatedAt
limit10
offset0

Headers
KeyValueDescription
AuthorizationeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoSWQiOiI2MWMxNzNkYTExYmY0YjA2ZmM4NzE3ZWYiLCJzb3VyY2UiOiJ1c2VyIiwic291cmNlSWQiOiI2MWMxNzNkOTExYmY0YjA2ZmM4NzE3ZWUiLCJpYXQiOjE2NTgzMTIyODQsImV4cCI6MTY1ODkxNzA4NH0.oZvUt7SxM6JH2YYkqy2XY6EubuyDve1ndhyP3QexDmM

performer-order 2

Headers
KeyValueDescription
Authorization{{performer-token}}
Query
KeyValueDescription
sortdesc
sortByupdatedAt
limit10
offset0

Headers
KeyValueDescription
AuthorizationeyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRoSWQiOiI2MWMxNzNkYTExYmY0YjA2ZmM4NzE3ZWYiLCJzb3VyY2UiOiJ1c2VyIiwic291cmNlSWQiOiI2MWMxNzNkOTExYmY0YjA2ZmM4NzE3ZWUiLCJpYXQiOjE2NTgzMTIyODQsImV4cCI6MTY1ODkxNzA4NH0.oZvUt7SxM6JH2YYkqy2XY6EubuyDve1ndhyP3QexDmM

contact 1

Description

Send message to admin via email

Body
{ "email": "test@example.com", "name": "John snow", "message": "Hello please contact me" }

post 1


performer-videos 5

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
KeyValueDescription
video
titleHahaha
tagsaaaa
participantIds61308c4c5a465b0bc32df949
isSaleVideofalse
isSchedulefalse
statusactive
descriptiontest video

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
KeyValueDescription
video
titleHahaha
tagsaaaa
participantIds61308c4c5a465b0bc32df949
isSaleVideofalse
isSchedulefalse
statusactive
descriptiontest video

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
KeyValueDescription
video
titleHahaha
tagsaaaa
participantIds61308c4c5a465b0bc32df949
isSaleVideofalse
isSchedulefalse
statusactive
descriptiontest video

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0
sortdesc
sortBycreatedAt

Headers
KeyValueDescription
Authorization{{bearer-token}}

performer-feeds 10

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
{ "text": "Hello mama", "type": "photo", "fileIds": "62d7c8dc47af11564c22fdd8", "status": "active", "teaserId": null, "thumbnailId": null, "pollIds": [], "isSale": false }

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
{ "description": "Trump or Obama?", "expiredAt": "2022-07-27T16:59:59.999Z" }

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
KeyValueDescription
file

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
KeyValueDescription
file

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
KeyValueDescription
file

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
KeyValueDescription
file

Headers
KeyValueDescription
Authorization{{performer-token}}

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
{ "text": "Hello world", "isSale": true, "price": 10, "teaserId": null, "thumbnailId": null, "fileIds": ["62d7c4aa47af11564c22fdbb"], "status": "active", "type": "photo" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0
sortdesc
sortBycreatedAt

Headers
KeyValueDescription
Authorization{{performer-token}}

performer-products 5

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
KeyValueDescription
nameAdidas
typedigital
descriptionbest 2021
stock1000
price10
statusactive
image
digitalFile

Headers
KeyValueDescription
Authorization{{performer-token}}
Body
{ "name": "Nike", "type": "physical", "price": 1111, "status": "active", "description": "hehehe" }

Headers
KeyValueDescription
Authorization{{performer-token}}
Query
KeyValueDescription
limit12
offset0
sortdesc
sortBycreatedAt

Headers
KeyValueDescription
Authorization{{performer-token}}

Headers
KeyValueDescription
Authorization{{bearer-token}}

performer-galleries 5

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "name": "New gallery", "description": "test gallery", "status": "active" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "name": "Gallery 111", "description": "desc", "status": "inactive" }

Headers
KeyValueDescription
Authorization{{bearer-token}}
Query
KeyValueDescription
limit12
offset0
sortasc
sortByupdatedAt

Headers
KeyValueDescription
Authorization{{bearer-token}}

Headers
KeyValueDescription
Authorization{{bearer-token}}

performer-photos 2

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
KeyValueDescription
photo
galleryId{{gallery-id}}

Headers
KeyValueDescription
Authorization{{bearer-token}}

report-violation 1

Headers
KeyValueDescription
Authorization{{bearer-token}}
Body
{ "title": "terrorist", "description": "hahah", "targetId": "{{feed-id}}" }