Jump to content









Photo

Data Stream in PHP or Google Gauge

data stream PHP

  • Please log in to reply
22 replies to this topic

#21 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 107 posts
  • LocationMadrid, Spain.

Posted 07 June 2018 - 12:38 PM

Hi,

Maybe you can try:

 

 

import com.carriots.sdk.utils.BasicHttp;

def context_json = new groovy.json.JsonBuilder(context)

def basicHttp = new BasicHttp();
basicHttp.url = "https://YOUR_PUBLIC_IP/YOUR_PHP_FILE.php";
basicHttp.verb = "POST";

basicHttp.payload = context_json.toString()
basicHttp.send();

 


 


I hope this help you.

 

BR




 



#22 arushakelkar

arushakelkar

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 11 June 2018 - 10:09 AM

thanks,this worked



#23 jpastor

jpastor

    Development leader

  • Administrators
  • 178 posts

Posted 02 July 2018 - 08:45 AM

Hi friend.

 


If your PHP has an API listening, you could use the Carriots HTTP library to make POST requests from a listener.

 

Documentation here:
https://www.carriots...lity_libraries#

 

Regards!







Also tagged with one or more of these keywords: data, stream, PHP

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users