• Hi there,

    I am running into an issue (beginner). I wish to use a json script which holds iframes and data on profiles who are online on a particular website.

    This file updates itself every now and then with new users who are online.

    I have downloaded the Json Api, but i do not understand where to go from here.

    I have tired both creating new pages and inserting the Json code as well as new posts but neither of them work.

    Any help would be greatly appreciated.

    Please see this link to the code in which i wish to embed.

    Json Code

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It sounds like you’re missing the JavaScript bit that interacts with the file. How was the json file created?

    Thread Starter adultkickstart

    (@adultkickstart)

    Thanks for the reply.

    This is all i am provided with. The page states

    “The list of online users is available in 3 formats, XML, JSON, and YAML. ”

    It then provides me with said formats, followed by a list of fields:

    username: max length 111 characters
    room_subject: max length 200 characters
    is_hd
    is_new
    tags: max length 50 characters / tag
    seconds_online
    gender: Can be “f”, “m”, “t”, or “c” for “female”, “male”, “trans”, and “couple”.
    recorded: “true” or “false”.
    current_show: “public”, “private”, “group”, or “away”.
    chat_room_url: A url with your affiliate code in it.
    image_url
    image_url_360x270
    block_from_states: This field is no longer populated.
    block_from_countries: This field is no longer populated.
    iframe_embed: HTML for an iframe embed with your affiliate code in it.
    num_users: Number of users currently viewing the room.
    num_followers: Number of users following the room.

    This is all the information i have access to.

    Do i have to write the javascript in such a program as Atom perhaps, which will interact with the JSON and add this to my wordpress?

    I really hope not :/ Not that far into coding knowledge yet. Know the basics.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think you might have to write the JavaScript, but we can help with that.

    So, you’re trying to use a service that shows data about persons online on a website. Which service is this? I’ll try to take a look at what they’re trying to get people to do with this json file.

    Thread Starter adultkickstart

    (@adultkickstart)

    Well, although i was hoping i wouldn’t have to, JS is on my list of code to learn so may also start now.

    I will now share with you the link to this information. DISCLAIMER: This is adult content.

    Also, please do not judge me on my career choice, it has been very good to me.

    https://chaturbate.com/affiliates/promotools/api_usersonline/

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Sorry it looks like that page is only available to members of that site.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Json – Creating a iframe page via json file’ is closed to new replies.