GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Cams - Chaturbate API V2 parsing via JavaScript (https://gfy.com/showthread.php?t=1341908)

Colmike9 02-15-2021 03:43 PM

50 API versions

sarettah 02-15-2021 04:09 PM

Quote:

Originally Posted by Colmike9 (Post 22822526)
50 API versions

Fiddy not 50 dammit. How long have you been here?

Fucking people can't do nothing right.

.

Shoplifter 02-15-2021 04:18 PM

I see what u did there to get around adblock. Did you use htaccess? I have gotten this far. I think it's counting.:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.com$ [NC]
RewriteRule ^webcams(/.*)?$ https://chaturbate.com$1/?track=&tour=&campaign=WMID

sarettah 02-15-2021 05:17 PM

Quote:

Originally Posted by Shoplifter (Post 22822541)
I see what u did there to get around adblock. Did you use htaccess? I have gotten this far. I think it's counting.:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.com$ [NC]
RewriteRule ^webcams(/.*)?$ https://chaturbate.com$1/?track=&tour=&campaign=WMID

Nope.

I could tell you what I am doing but then I would have to kill you. Seriously.

.

Colmike9 02-15-2021 05:51 PM

Quote:

Originally Posted by sarettah (Post 22822537)
Fiddy not 50 dammit. How long have you been here?

Fucking people can't do nothing right.

.

My 50 is pronounced 'fiddy', tho

sarettah 02-15-2021 10:00 PM

Looks like both API versions are down :(


Edited in: and now back up.

.

Andreweb 02-16-2021 03:31 AM

Cams doesn't load on Chrome on your sites(milffoxes.com, dudefoxes), at least not for me. They load fine on Mozilla and on Edge!

Paul&John 02-16-2021 05:19 AM

Loads here on chrome

sarettah 02-16-2021 07:35 AM

Quote:

Originally Posted by Andreweb (Post 22822729)
Cams doesn't load on Chrome on your sites(milffoxes.com, dudefoxes), at least not for me. They load fine on Mozilla and on Edge!

Hmm, loading fine for me in chrome.

I wonder what's up with that.

Thanks P&J.

.

sarettah 02-16-2021 07:44 PM

Anybody do anything with this code that they want to show off?

.

sarettah 02-17-2021 09:59 AM

Quote:

Originally Posted by sarettah (Post 22823008)
Anybody do anything with this code that they want to show off?

.


I guess that is a no.

Well, I finished up what I am going to do with Dudefoxes.com and MILFfoxes.com for now.

Put a warning page on them. Mixed some text in there. Still might add an about page to them to get some more text but for the most part they are done.

.

Paul&John 02-17-2021 11:34 AM

Quote:

Originally Posted by sarettah (Post 22823008)
Anybody do anything with this code that they want to show off?

.

Not yet, still busy counting my dollarz :(

ruff 02-17-2021 12:04 PM

This is great stuff. I'm going to spend hours fucking around with this because I know nothing and I might accidentally learn something. Thanks for the post.

sarettah 02-17-2021 02:54 PM

Here is another little piece.

In the return from the API a count of the number of cams on line that meet your criteria is included.

So, if you did not include any gender or tag parameter you would see the total number of cams online at that time.

If you included a gender parameter, you would see the total number of cams for that gender. Same for tags.

So, even if you are limiting your results by using the limit parameter you get to see the total number of cams that are available for that query.

That combined with the limit parameter and the offset parameter allows you to be able to create an effective pagination routine.

The total count is the first element in the xml:

Code:

<response>
    <count>9439</count>
  <results>
      <resource>
          <username>
            ...........

You can get at the count by using the getElementsByTagName() function.

for example:
camcount=xmlDoc.getElementsByTagName("count")[0].childNodes[0].nodeValue;

.

sarettah 02-18-2021 07:16 AM

Anybody interested in a full tutorial on building a site using api feeds?

A beginning to end, step by step type tuttorial?

.

Profits of Doom 02-18-2021 02:51 PM

Quote:

Originally Posted by sarettah (Post 22823669)
Anybody interested in a full tutorial on building a site using api feeds?

A beginning to end, step by step type tuttorial?

.

Coming from you absolutely, I know jack shit about coding but I always enjoy the stuff you post... :thumbsup

sarettah 02-18-2021 02:56 PM

For pagination:

Once you have the camcount it is easy to do pagination.

The total number of pages is the total cams divided by the number of cams per page.

I am using the number of cams that I am putting on each page as my limit parameter and I have it stored in a var called limit.

So, the number of pages is camcount/limit. However, that might not end up being an integer so to use that as the number of pages I use the ceiling function to round up to the nearest whole number.

maxpages=Math.ceil(camcount/limit);

So I now know how many total pages I have and I can make a pagination widget of some kind so the user can bounce through the pages or go to the page of their choosing.

If I know what page we are on then I can use the offset parameter on the api_url to pull the cams for that page.

We simply multiply the limit times the page number and we have the offset needed to grab that page of cams and we can then tack the offset parameter on to the url:

var offset=limit * pagenum;
api_url += '&offset=' + offset;

Getting the page number we are on is the harder task here.

Javascript does not have a built in function to read the url query string so if we want to use the url to get the next page we have some coding to do in javascript or we can grab the query on the server side in php.

I decided to use a different method. I am using an ajax call to grab the next page of data and then just loading it into the cams div.

In my pagination widget I set the page number variable to the page selected and then have a call to a function called change_page(). That function loads the page and then moves the browser view back to the top of the page. I could have just used load_page() but I wanted the animation effect of moving the page to the top. I might get rid of that because it is a little distracting to me.

In the edit/var section:

var pagenum=0;

In the pagination widget:

onClick="pagenum++;change_page(); (advance the page number by 1 and then change the page to that page number)

function change_page()
{
load_page();
document.getElementById("countdiv").scrollIntoView ({behavior: 'smooth'});
}

Hope that helps someone.

.

sarettah 02-18-2021 03:02 PM

Quote:

Originally Posted by Profits of Doom (Post 22823906)
Coming from you absolutely, I know jack shit about coding but I always enjoy the stuff you post... :thumbsup

I almost missed this. We cross posted.

Thanks.

.

sarettah 02-19-2021 09:42 AM

Quote:

Originally Posted by Profits of Doom (Post 22823906)
Coming from you absolutely, I know jack shit about coding but I always enjoy the stuff you post... :thumbsup

I don't think there is enough interest.

oh well.

.

boyboy4 02-19-2021 10:24 AM

Quote:

Originally Posted by sarettah (Post 22823669)
Anybody interested in a full tutorial on building a site using api feeds?

A beginning to end, step by step type tuttorial?

.

This is very interesting and we would be very grateful to you! :thumbsup

Shoplifter 02-19-2021 12:22 PM

Quote:

Originally Posted by sarettah (Post 22823669)
Anybody interested in a full tutorial on building a site using api feeds?

A beginning to end, step by step type tuttorial?

.

I'm interested.

I also had the thought that because the code is so slim it could be incorporated into other sites rather than just standalone.

sarettah 02-19-2021 01:12 PM

Quote:

Originally Posted by Shoplifter (Post 22824347)
I'm interested.

I also had the thought that because the code is so slim it could be incorporated into other sites rather than just standalone.

Yes, it lends it self to making widgets quite nicely.

.

Dennis69 02-21-2021 07:10 AM

Quote:

Originally Posted by sarettah (Post 22823669)
Anybody interested in a full tutorial on building a site using api feeds?

A beginning to end, step by step type tuttorial?

.

Yes for sure, was playing around with a few hours but would love to know how to do more with it!

sarettah 02-22-2021 11:31 AM

I will be trying to put something together. It will be a little while. I have several clients that have to come first.

.

mikeet 04-24-2021 02:53 PM

Quote:

Originally Posted by sarettah (Post 22823008)
Anybody do anything with this code that they want to show off?

.

I did something with it and don't want to show off :winkwink:

pm me if you want to see it..

Andreweb 04-25-2021 01:36 AM

Starting from your code I was able to do this website https://couplecams4k.com/ . Of course, it's still a work in progress and for chat rooms, I am still using version 1 of APIs because my coding skills are limited and I wasn't able to figure out how to make them in V2. Thanks again for sharing the code with us!

sarettah 04-25-2021 07:13 AM

Quote:

Originally Posted by Andreweb (Post 22851357)
Starting from your code I was able to do this website https://couplecams4k.com/ . Of course, it's still a work in progress and for chat rooms, I am still using version 1 of APIs because my coding skills are limited and I wasn't able to figure out how to make them in V2. Thanks again for sharing the code with us!

Cool.

.

marxxman 09-21-2021 05:17 PM

Amazing
 
Quote:

Originally Posted by sarettah (Post 22823669)
Anybody interested in a full tutorial on building a site using api feeds?

A beginning to end, step by step type tuttorial?

.

I am not a programmer and find it difficult to try to learn api's. I am trying to replace generic ads with live CB cams like this and finding this was a Godsend. I'm trying to figure out how to adjust the css for the performer names, when I look at it on mobile they all run together. I would be very grateful if anybody could steer me in the right direction on how to adjust this script so it's readable on any screen size, and where to add other fields like user age and number of users in the room. Anybody have any advice for a slow learner? I spend hours just spinning in circles.

e-god 11-27-2021 11:13 AM

Anyone have a complete script to run a site using this code? :)

Willing to buy.

Nubianprince 11-27-2021 04:23 PM

Quote:

Originally Posted by marxxman (Post 22916097)
I am not a programmer and find it difficult to try to learn api's. I am trying to replace generic ads with live CB cams like this and finding this was a Godsend. I'm trying to figure out how to adjust the css for the performer names, when I look at it on mobile they all run together. I would be very grateful if anybody could steer me in the right direction on how to adjust this script so it's readable on any screen size, and where to add other fields like user age and number of users in the room. Anybody have any advice for a slow learner? I spend hours just spinning in circles.

Try this for mobile
Code:

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

 CSS HERE
 
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

 CSS HERE
 
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

 CSS HERE
 
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

 CSS HERE
 
}
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

 CSS HERE
 
}


Cucik 12-13-2021 04:00 PM

How can I use this script for Wordpress?

k33n 12-14-2021 02:44 AM

As it is, you can't. Anything custom, outside the Wordpress core, can be integrated with the help of plugins. Also is recommended to use the Wordpress way, or you will be getting all sorts of errors and unexpected behaviours.

Tjeezers 12-14-2021 04:03 AM

Whenever I have AdBlock On, CB disappears to another universe. Even the APIs do not pop up.

Nubianprince 12-16-2021 12:50 PM

Quote:

Originally Posted by Cucik (Post 22943622)
How can I use this script for Wordpress?

I've seen a couple WP related cam plugins on here already, check those out. I started developing my own recently.

j3rkules 12-16-2021 03:03 PM

Quote:

Originally Posted by Nubianprince (Post 22944604)
I've seen a couple WP related cam plugins on here already, check those out. I started developing my own recently.

I am pretty sure that he is looking for a free script or plugin.

PretjeNL 01-03-2022 01:27 PM

Quote:

Originally Posted by sarettah (Post 22823669)
Anybody interested in a full tutorial on building a site using api feeds?

A beginning to end, step by step type tuttorial?

.

I would be interested aswell. I just noticed the topic u have created for the API V2 version.
Was trying to figure it out a bit, as i do know some programming.

Going to play around with the code u posted. Thanks for sharing.

brassmonkey 01-13-2022 01:45 PM

this is badass op how do you add pagination? and open cam page? :helpme:helpme

sarettah 01-13-2022 04:16 PM

Quote:

Originally Posted by brassmonkey (Post 22953641)
this is badass op how do you add pagination? and open cam page? :helpme:helpme

look under the sheets.

.

brassmonkey 01-13-2022 05:35 PM

Quote:

Originally Posted by sarettah (Post 22953697)
look under the sheets.

.

you just can't stop talking shit. i was going to leave it alone...

sarettah 01-13-2022 07:13 PM

Quote:

Originally Posted by brassmonkey (Post 22953738)
you just can't stop talking shit. i was going to leave it alone...

I am not talking shit. Do a view source (look under the sheets) on dudefoxes or milffoxes, the code is there. None of it is hidden.

You should know enough coding to figure it out.

Edited in: take a look at post 67 in this thread, I explain the pagination there.

.

brassmonkey 01-13-2022 09:32 PM

Quote:

Originally Posted by sarettah (Post 22953773)
I am not talking shit. Do a view source (look under the sheets) on dudefoxes or milffoxes, the code is there. None of it is hidden.

You should know enough coding to figure it out.

Edited in: take a look at post 67 in this thread, I explain the pagination there.

.

thank you :thumbsup:thumbsup

drexl 01-27-2022 08:09 AM

Quote:

Originally Posted by CB Kitt (Post 22821270)
We encourage all affiliates to use the new API where possible.

Hi CB Kitt,

I would really appreciate if you pinged me on Skype when time allows: live:.cid.d8703232d4c0c99

It's not about the technical implementation of the API.

Thank you

Clown 02-05-2022 06:29 PM

Just wanted to share my version of the v2 API.

hornyfeed dot com

Any input is appreciated. I am also willing to help people in need.

Thanks.

sarettah 02-05-2022 07:56 PM

Quote:

Originally Posted by Clown (Post 22962050)
Just wanted to share my version of the v2 API.

hornyfeed dot com

Any input is appreciated. I am also willing to help people in need.

Thanks.

Why does https://hornyfeed.com redirect to https://clownonymous.com/cb/ ?

.

Clown 02-05-2022 09:51 PM

That is the domain I have it hosted on. I just used a redirect as I just bought hornyfeed domain yesterday.

EDIT: Trying to point the domain directly to it without a redirect but having some issues.

sarettah 02-06-2022 06:05 AM

Quote:

Originally Posted by Clown (Post 22962083)
That is the domain I have it hosted on. I just used a redirect as I just bought hornyfeed domain yesterday.

EDIT: Trying to point the domain directly to it without a redirect but having some issues.

Well, doing that without warning folks looks scammy as fuck, I think.

So, I did not go any further once I hit the redirect.

.

Clown 02-06-2022 12:35 PM

Quote:

Originally Posted by sarettah (Post 22962142)
Well, doing that without warning folks looks scammy as fuck, I think.

So, I did not go any further once I hit the redirect.

.

I can see what you mean, however I bought a domain with IONOS for the first time and their interface is pretty garbage. I have finally figured out how to set the nameservers correctly and it should be working without a redirect. Sorry about that, I usually use namecheap for my domains but couldn't pass up the $1 domain offer :1orglaugh

sarettah 02-06-2022 08:15 PM

Quote:

Originally Posted by Clown (Post 22962226)
I can see what you mean, however I bought a domain with IONOS for the first time and their interface is pretty garbage. I have finally figured out how to set the nameservers correctly and it should be working without a redirect. Sorry about that, I usually use namecheap for my domains but couldn't pass up the $1 domain offer :1orglaugh

Took a look. Looks pretty good.

You have some work to do on the mobile. Pagination is too small, enter link on the adult warning is too small.

In your info box you are showing the birthdate. Myself, I would not do that.


.

Clown 02-06-2022 09:14 PM

Quote:

Originally Posted by sarettah (Post 22962404)
Took a look. Looks pretty good.

You have some work to do on the mobile. Pagination is too small, enter link on the adult warning is too small.

In your info box you are showing the birthdate. Myself, I would not do that.


.

Thank you for the tips, I will fix those issues and remove the birthday as well. I thought it looked kind off odd having it displayed anyways.

Clown 02-18-2022 05:06 PM

juicysluts.com - My newest touch on the Chaturbate API. Any feedback is appreciated.

Also is there still good money to be made with Chaturbate?


All times are GMT -7. The time now is 06:25 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc