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

AdultWork.com Square Profile Images

This page will explain how to use the square images return by the API in various API endpoints.

  1. Why use square images?
  2. API Endpoints
  3. How to use the different sizes?

 

 

Why use square images?

The API of AdultWork.com returns the URL of the images users use in their profiles. A lot of the time these images are not square of shape and thus could not be easily used in an (web-)application that shows square profile pictures. To overcome this we have created square images of the profile pictures and let the API endpoint return those URLs. There are a couple of different sizes you can use.

 

 

API Endpoints

The following endpoints can return square images:

    • /v1/Dashboard/GetDashboard
      • This endpoint returns the property ImageSquareURL.
    • /v1/profile/getProfileDetails
    • /v1/Search/SearchProfiles
      • These endpoints will return the property ProfileSquareURL.
    • /v1/Groups/GetGroupDetails
    • /v1/DirectCam/GetRecentDirectCamShows
      • These endpoints will return the property ProfileImages and this object will have the properties Image1SquareURL, Image2SquareURL and Image3SquareURL.

 

 

How to use the different sizes?

After you have the data from the API you can easily change the size of the default value 40 by changing the url yourself. The URL takes the following format: /{size}/XXX_1.jpg. Replace {size} to one of the following supported sizes: 40, 60,120 and 240.

The following example has the data returned from the API using the GetProfileDetails endpoint. (Not all properties are displayed to simplify this example)

{
    "HasProfile":true,
    "Profile":{
        "UserID":123456,
        "Nickname":"JosepheneBlogs",
        "HasImages":true,
        "Images": {
        "HasImage1": true,
            ...
            "Image1SquareURL": "https://URL/sq/40/123456_1.jpg",
            ...
            "HasImage2": true,
            ...
            "Image2SquareURL": "https://URL/sq/40/123456_2.jpg",
            ...
            "HasImage3": true,
            ...
            "Image3SquareURL": "https://URL/sq/40/123456_3.jpg",
            ...
            "Image1": "191_1.jpg",
            "Image2": "191_2.jpg",
            "Image3": "191_3.jpg"
        }...
    }
}        

You could replace the /40/ with for example /240/ to get a square image of 240 pixels. The same goes for all other sizes and endpoints. They all return the same 'style' of URLs.