topical media & game development

talk show tell print

server-webapi-code-05-quickGeneration.php / php



  <?php
  function callAPIQuick(endpoint, devkey, action, type, keyword)
  {
    action = urlencode(action);
    type = urlencode(type);
    keyword = urlencode(keyword);
    url = endpoint . "?devkey=devkey&action=action&type=type&keyword=keyword";
    response = @file_get_contents(url);
    return response;
  }
  ?>


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.