sarettah |
04-02-2024 07:06 AM |
Quote:
Originally Posted by NoWhErE
(Post 23250022)
Write a quick script that queries the API for the room you are embedding to get their status.
|
The API is not really sophisticated enough for that. You cannot query it for a specific room. So, to check the status off 1 room (which is what I suspect is what he wants to do) you would have to pull all records for the gender, because it is known and go through them all to see if the record you are looking for is there. Unfortunately the API v2 limits you to 500 cams per pull so if the one you are looking for isn't in the first pull you would have to do multiple pulls to get at it.
On the API v1 you would have to pull the entire set of cams.
Quote:
SO i decided to create a cam site with embed, but when i embed chaturbate embed, if the room is offline it will show offline on the embed, any way to show other room or atleast display message for the visitor to join other room?
|
Quote:
Originally Posted by lovebitch
(Post 23249911)
But I am embeding manually. No way around in that case?
|
I know of no sure way to determine if a room is online or not. The API statuses returned are public, private or away but it only lists online cams so if the model is not online they simply do not show up in the api pull.
It sounds like you are trying to pull for a specific room so the best bet there is ot have the iframe on the page and if it is offline it is offline.
If you are not trying for a specific room you can go grab the link for "current top room", with that if they go offline they are replaced with another room.
That is all based on the little knowledge I have and I definitely could be wrong as I often am.
Good luck and have fun.
|