Exemplo n.º 1
0

          }


        }


      </script>
      <script type="text/javascript">


        (function () {
          var po = document.createElement('script');
          po.type = 'text/javascript';
          po.async = true;
          po.src = 'https://apis.google.com/js/client:plusone.js';
          var s = document.getElementsByTagName('script')[0];
          s.parentNode.insertBefore(po, s);
        })();


      </script>

    <?php 
        }
    }
} catch (Exception $e) {
    traceRequest($e, $ranking);
}
include 'soap/logout.php';
Exemplo n.º 2
0
                ?>
                      -<?php 
                echo $psubprice->to;
                ?>
 kWh <span
                        class="price"><?php 
                echo $psubprice->price;
                ?>
 <?php 
                echo $psubprice->unit;
                ?>
</span>
                    </li>
                  <?php 
            }
            ?>
                </ul>
              </li>
            <?php 
        }
        ?>
          </ul>
        </div>
      </div>
    </div>
  <?php 
    }
} catch (Exception $e) {
    traceRequest($e, $val);
}
include 'soap/logout.php';
Exemplo n.º 3
0
            $resp = $service->GetDistributorList($req);
            dpm($resp);
            $arr = $resp->distributor;
        } else {
            if ($what == 't') {
                $req = new GetTariffListRequest();
                $req->authenticationToken = $token->authenticationToken;
                $req->energyTypeId = $energyType;
                $req->postcodeId = $postcodeId;
                $req->supplierId = $_REQUEST['sid'];
                $resp = $service->GetTariffList($req);
                $arr = $resp->tariff;
            }
        }
    }
    foreach ($arr as $obj) {
        $jsobj = array();
        $jsobj["id"] = $obj->id;
        $jsobj["name"] = $obj->name;
        $json[$i] = $jsobj;
        $i = $i + 1;
    }
    if ($out == 'full') {
        echo "<pre>" . json_format(json_encode($resp)) . "</pre>";
    } else {
        echo json_encode($json);
    }
} catch (Exception $e) {
    traceRequest($e, $service);
}
include 'soap/logout.php';