Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // dashboard/home
- class DashboardController {
- function home() {
- $username ="001b7ec3";
- $password="1234567";
- // datos del producto
- //$api = new APIClient();
- //$producto = $api->get("http://apiserver.local/producto/ver/15");
- //print_r($producto);
- // ========================================================================
- // OBTENER CRÉDITO DISPONIBLE
- // ========================================================================
- // OPCION 1: autenticar con un único método ad hoc
- $api = new APIClient();
- //$api->auth("http://apiserver.local/usuario/autenticar", $username, $password);
- // obtener e imprimir crédito
- $credito = $api->get("http://apiserver.local/card/credit");
- print_r($credito);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement