Need help with Chaturbate API coding.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • linkhouse
    Registered User
    • Jun 2014
    • 68

    #1

    Need help with Chaturbate API coding.

    Hello. Im building a custom Chaturbate API script site.
    I having some trubble figuring out some of the php code.

    I want to get specific data from the chaturbate XML feed. Now to the problem. I dont know how to code to recieive information for a specific model.

    Lets say i want to get data from modelxxx , age, from, language, root topic etc.
    And then display it on the page.

    Maybe someone here have a small finish php code for that.

    Thank you
  • sarettah
    see you later, I'm gone
    • Oct 2002
    • 14293

    #2
    There are several ways to do what you are trying to do.

    1. When you read the xml feed load it to a database then whenever you need info about a particular record just read it from the database.

    2. If you don't want to use a db for some reason then each time you want the info on a particular record read through the xml feed to get the info.

    3. When putting the info for the thumbs up, put each thumb in a form and include the info needed for the individual model as form variables and then use the form data to make the individual page.

    Hope that helps.

    .
    All cookies cleared!

    Comment

    • Jazzjazzy
      Registered User
      • Jan 2016
      • 8

      #3
      Originally posted by linkhouse
      Hello. Im building a custom Chaturbate API script site.
      I having some trubble figuring out some of the php code.

      I want to get specific data from the chaturbate XML feed. Now to the problem. I dont know how to code to recieive information for a specific model.

      Lets say i want to get data from modelxxx , age, from, language, root topic etc.
      And then display it on the page.

      Maybe someone here have a small finish php code for that.

      Thank you
      Contact me on skype "ragequit-noob". I already have this script coded.

      Comment

      • linkhouse
        Registered User
        • Jun 2014
        • 68

        #4
        I figured it out my self

        thank you anyway.

        Comment

        • adulttemps
          Confirmed User
          • May 2002
          • 320

          #5
          https://github.com/hillipino/Chaturbate-API can rip the code or any other code from this.
          Hillipino Money with Cams

          Comment

          • linkhouse
            Registered User
            • Jun 2014
            • 68

            #6
            Originally posted by adulttemps
            can rip the code or any other code from this.
            I love that CB script. Is it yours?

            Comment

            • saimonyz
              Registered User
              • Apr 2016
              • 14

              #7
              need bongacams api script does anyone have?
              BomCams.NET PearCams.COM

              Comment

              • k33n
                Confirmed User
                • Feb 2009
                • 201

                #8
                soft 404

                @adulttemps your Cb script is great.Any ideas how to solve soft 404 pages generated if username is not online?For example if a visitor comes from a SE link like domain.com/cam/username but the username is offline,page has no content because there is no info to extract from xml.Soft 404 in google eyes and bad website experience for visitor.Thanks

                Comment

                • magneto664
                  God Bless You
                  • Aug 2014
                  • 1470

                  #9
                  Originally posted by k33n
                  @adulttemps your Cb script is great.Any ideas how to solve soft 404 pages generated if username is not online?For example if a visitor comes from a SE link like domain.com/cam/username but the username is offline,page has no content because there is no info to extract from xml.Soft 404 in google eyes and bad website experience for visitor.Thanks
                  your idea is send to googlebot information about fu**know how many 404 errory every day? for each login / log off for any user even if login for only 10 minutes and get disconnection? I don't know how many 404 error it will be in google webmaster tools daily but this is stupid idea.

                  tnx.
                  magneto664 📧 gmail.com
                  Cams.Zone 💘 Best CDN for Adult Content
                  My Fav: 👍 Chaturbate 👍 Stripchat 👍 AdultFriendFinder

                  Comment

                  • sarettah
                    see you later, I'm gone
                    • Oct 2002
                    • 14293

                    #10
                    Originally posted by k33n
                    @adulttemps your Cb script is great.Any ideas how to solve soft 404 pages generated if username is not online?For example if a visitor comes from a SE link like domain.com/cam/username but the username is offline,page has no content because there is no info to extract from xml.Soft 404 in google eyes and bad website experience for visitor.Thanks
                    The script started as the NMIP standalone that we have discussed before. The function for the individual cam is in the functions.php file and is called solo_cams().

                    I took a look and right now because some of the display stuff is in the functions there are actually 2 different solo_cams() functions, one for adulttemps Version 1 (v1) and one for version 2 (v2). The differences between the 2 are because of the display stuff inside the functions.

                    The problem of nobody on line can be solved by modifying the solo_cams function.

                    1. Near the beginning define a variable to use as a switch as to whether the cam was found or not ($found_cam=0;)

                    2. Then if the cam is found change the value of the switch ($found_cam=1;)

                    3. Then check to see if the cam was found and if it wasn't then put something else up. (if(!$found_cam){do something here;})

                    It would end up looking something like this:

                    Code:
                    // Print Solo Cams
                    		
                    function solo_cams( $affid, $track, $user ) {
                          
                            // add found cam switch and initialize it to 0
                            $found_cam=0;
                            .
                    	.
                    	foreach( $cams as $cam ){ 
                            .
                            .
                       	   if ( $cam->username == $user ) {
                                
                                  // cam was found set found cam switch to 1
                                  $found_cam=1;
                                 .
                                 .
                    	   }
                            }
                    
                            // check to see if cam was found
                           if(!$found_cam)
                           {
                              // if cam was not found then   
                              echo "Put the alternate display stuff for if the cam user is not on line here.";
                           } 			
                    				
                           if ( RELATED_SHOW ) {
                                .
                                .
                          }					
                    }
                    I think ;p
                    All cookies cleared!

                    Comment

                    • adulttemps
                      Confirmed User
                      • May 2002
                      • 320

                      #11
                      Good Idea, Illl try to implement something like that soon. Also there is a bongacams version at my github page for whoever asked above.https://github.com/hillipino
                      Hillipino Money with Cams

                      Comment

                      • adulttemps
                        Confirmed User
                        • May 2002
                        • 320

                        #12
                        updated the script to use sarettah's suggestion for the offline cams.
                        Hillipino Money with Cams

                        Comment

                        • linkhouse
                          Registered User
                          • Jun 2014
                          • 68

                          #13
                          Originally posted by adulttemps
                          updated the script to use sarettah's suggestion for the offline cams.
                          Thank You

                          Comment

                          • k33n
                            Confirmed User
                            • Feb 2009
                            • 201

                            #14
                            Originally posted by magneto664
                            your idea is send to googlebot information about fu**know how many 404 errory every day? for each login / log off for any user even if login for only 10 minutes and get disconnection? I don't know how many 404 error it will be in google webmaster tools daily but this is stupid idea.

                            tnx.
                            You got it so wrong.It is not about sending 404 to google,it is about sending 200 OK for a page that has no content.I don't think header and footer counts as content.Pages with no content should not be indexed,therefore,if a page sends HTTP response 200,googlebot expects something,otherwise you mislead it.Having a few thousands pages like that...you figure

                            @sarettah
                            You never let down
                            Thanks a lot guys.It's working great now.

                            Comment

                            • saimonyz
                              Registered User
                              • Apr 2016
                              • 14

                              #15
                              @adulttemps

                              category not working for script bongacams

                              Female Cams - not working
                              Male Cams - not working
                              Couple Cams - not working
                              Lesbian Cams - not working
                              Tranny Cams - working

                              how to fix?
                              BomCams.NET PearCams.COM

                              Comment

                              Working...