API Set Up for out of box Drupal
Budget $10-30 USD
- Freelancer
- Jobs
- PHP
- API Set Up for out of box Drupal
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.
7 freelancers are bidding on average $193 for this job
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
Hi, I am Drupal developer person with excellent experience on Front-end & Back-end development, Theme development, E-commerce integration, Third party API integration, Core & contributed modules/plugins upgrade and More
⭐⭐Drupal Expert⭐⭐ Interested to work on your ⭐⭐Drupal⭐⭐ website project. I went through to the job description & want to share that as we have developed & design websites using Drupal & other platform, in case you want More
I understand your requirements & project detail's.. I have 12 year/s experience in designing. kindly check my previous work. [login to view URL] Ready to start your work now thank you.
Hi Sir, I have gone through the project description and interested in working with you. I am having 7+ years of Drupal development experience and have done 70 projects in Drupal 7 and 8, including Migration from D7 More
Hello Marcus M.! My name is Miguel and I work with Dmitriy, Bogdan, Alexey and Ilshat and we are experts on php, javascript, drupal, html, json. Please take a look at our portfolio [login to view URL] - Mobile htt More