This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$client = new SoapClient("http://testing.facturante.com/api/comprobantes.svc?wsdl"); | |
$auth = array( | |
"Empresa" => 1111, | |
"Hash" => "hashdefacturante", | |
"Usuario" => "[email protected]" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Repo de runner: https://github.com/appleboy/ssh-action | |
La key que se debe configurar en los secrets del repo es la id_rsa (sin la extensión pub), o la que hayan generado, en mi caso genere una para esto nada mas como dice la documentación del repo runner. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: GraphQL Example | |
* Textdomain: graphqlexample | |
*/ | |
/** | |
* Add logo and favicon images url to graphql schema in the rootquery. copy file into wp-content/plugins and then activate from Plugin's page. | |
**/ | |
function get_logo() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
AllPosts | |
query - Iniciamos la consulta | |
PostsAll - Nombramos nuestra consulta para poder agrupar de ser necesario | |
posts - Entidad que consultamos | |
edges - Ayudan a definir partes de la query, podemos tener varios y ayudan con la paginación | |
node - un grupo o nodo de datos | |
""" | |
query PostsAll { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Flash_Session { | |
static private $initialized = false; | |
public function __construct() | |
{ | |
if (self::$initialized) | |
return false; | |
self::$initialized = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Fields { | |
static private $initialized = false; | |
public static function initialize() | |
{ | |
if (self::$initialized) |