Streamate/Cambuilder API question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hhm
    Registered User
    • Nov 2020
    • 3

    #1

    Streamate/Cambuilder API question

    Hi all - fairly new here and this is my first post.

    For those who have experience with the Streamate API, I have a question on including description fields. I am successfully retrieving experything expected with the query options below - with the exception of the 3 description fields (About, Expertise, TurnOns), which all return empty arrays.

    Does anyone know if this is by design, i.e. the descriptions fields were removed from the output, or has something changed that hasn't been updated in the Cambuilder documentation?

    Query:
    Code:
    $url = '[...]/SMLive/SMLResult.xml';  (edited due to rules on posting URLs)
    
    $options = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
    	<SMLQuery>
    	 <Options MaxResults=\"" . $recordsperround .  "\" />
    	 <AvailablePerformers QueryId=\"MyGenericQuery\" PageNum=\"" . $currentround . "\">
    	 <Include>
    	  <Rating />
    	  <Descriptions></Descriptions>
    	  <Media>staticbiopic</Media>
    	 </Include>
    	 <Constraints>
    	 <PublicProfile />
    	 <StreamType>offline</StreamType>
    	 </Constraints>
    	 </AvailablePerformers>
    	</SMLQuery>";
    Thanks all
  • liveone
    Confirmed User
    • Oct 2006
    • 96

    #2
    hi , please contact [email protected] for full info
    Yuval

    E-Mail: [email protected]
    SKYPE: yuval.kijel
    http://Cambuilder.com
    http://Streamate.com

    Comment

    • hhm
      Registered User
      • Nov 2020
      • 3

      #3
      Thanks Yuval, I contacted the support team and they were helpful.

      In the end I figured out the issue and it was on my side. For others interested or experiencing something similar when working with php, it was the way SimpleXML handles CDATA, and the solution was to change the way the SimpleXML instance is created:

      Code:
      Original:
      $oXML = new SimpleXMLElement($result);
      
      New:
      $oXML = simplexml_load_string($result, 'SimpleXMLElement', LIBXML_NOCDATA);
      Thanks for your help.

      Comment

      • bean-aid
        So Fucking Banned
        • Jun 2011
        • 16493

        #4
        Sure wish some cam programs would allow passing free joins via api for revshare like datinggold did back in the day.

        Comment

        • V_RocKs
          Damn Right I Kiss Ass!
          • Nov 2003
          • 32449

          #5
          Originally posted by beaner
          Sure wish some cam programs would allow passing free joins via api for revshare like datinggold did back in the day.
          I second that

          Comment

          • bean-aid
            So Fucking Banned
            • Jun 2011
            • 16493

            #6
            Originally posted by V_RocKs
            I second that
            Its proven money for all and program has zero risk if it's based on revshare.

            Comment

            • mechanicvirus
              Confirmed User
              • Feb 2005
              • 4219

              #7
              Originally posted by beaner
              Sure wish some cam programs would allow passing free joins via api for revshare like datinggold did back in the day.
              Ah those were the days.

              Comment

              Working...