API Set Up for out of box Drupal

Closed Posted 4 years ago Paid on delivery
Closed Paid on delivery

Using Drupal,

I want to integrate a tube site using an API and access to GoDaddy account which will be provided. The tube site will include adult content. You will need to generate requests parameter lists, then use them in your own code.

There is a tube site generator tool. This tool generates an API call which responds with a video list in JSON format. It also contains further API requests for the videos’ details and tube player embed codes.

Step by Step Guide

Preparation

You will have the Video list API url which contains your account and filter settings. You only have to replace the CLIENT_IP placeholder with your visitor's ip address value in order to get a successful response from the API.

If you extended the url with the client_ip and fetch the url, you will get a JSON response which contains a list of videos fit to your requested filters.

You have to fetch the API for each different visitor to provide the relevant video contents for them to avoid to show model content to the user that the model blocks because of country ban settings.

Build a video list page/section

In the response you get all the information needed to put together a list page/section from our videos, like the id of the video, title, duration, tags, profile image of the model, cover image of the video, quality, uploader, and additional information about the pagination.

Check the documentation if you have questions about any of the parameters in the JSON response

After you have a list of the provided videos and you want to reach the selected video file and the details of the videos scene you have to call the „detailsUrl” url which is also in the Video list response.

Build video page, embed video player

After you called the selected video’s „detailsUrl” url you get all the details in a JSON response connected to that video scene

The JSON response of the video content details contains all the information that gives you the possibility to create a dedicated page for that selected video scene. Performer id, title of the video, quality, duration, cover image, preview images, tags, and the embed code of the video player which can play the video scene.

To embed the video player into your website you have to create an empty container (DIV element) with a proper ID. The player will adapt to the position and size of its container.

Use the „playerEmbedUrl” url as script on your page which you also find in the video content details response. You have to replace „c={CONTAINER}” parameter’s value in the „playerEmbedUrl” url with the container’s div ID.

Additonal information on implementation can be found here: [login to view URL]

Here is an example of the JSON code:

<div data-awe-container-id="player_container" style="display:inline-block;width:550px;height:309px;"></div><script src="//[login to view URL][]=&tags=&primaryColor=8AC437&labelColor=212121&campaign_id=&accessKey=c53d1b11e821f3788f3efd5485af26de&ms_notrack=1&c=player_container"></script>

Finally, an API reference can be found here:

[login to view URL]

WE WANT IT CUSTOMIZABLE SO I CAN JUST COPY CODE FROM SITE AND AD NEW CATEGORIES TO SITE. ALSO I WANT 3 COPIES OF THE SAME SITE BECAUSE I HAVE 3 DOMAIN NAMES IM GOING TO PUT THE SAME SITE ONTO.

THIS IS A BEGINNER'S PROJECT.

PHP JavaScript JSON HTML Drupal

Project ID: #21802391

About the project

6 proposals Remote project Active 4 years ago

6 freelancers are bidding on average $220 for this job

ProfSoftStudio

Hi ✦Can we do quick chat right now so that we can discuss the project briefly? I am ready to start work.I can help you.I am senior Drupal API, Php developer with more than I've 10+ years of experience.I have made More

$350 USD in 7 days
(109 Reviews)
6.0
eliaa

Hello, I have gone through your requirements and understand what you need. I am a Web developer with 7 years experience I have used a lot of technology to implement my clients solutions. List of Services that i can hel More

$30 USD in 1 day
(22 Reviews)
4.8