Skip to content

Instantly share code, notes, and snippets.

View hama's full-sized avatar

fang qiang hama

View GitHub Profile
<?php
$c = new Client('https://poste.io/admin/api/v1/', 'admin@poste.io', 'admin');
$c->delete('domains/t.com');
$c->post('domains', ['name' => 't.com']);
$c->post('boxes', ['email' => 't@t.com', 'passwordPlaintext' => 't', 'name' => 't']);
$c->patch('boxes/t@t.com', ['name' => 'a', 'disabled' => true, 'passwordPlaintext' => 'a']);
@hama
hama / linklist-api.liquid
Created January 16, 2020 07:18 — forked from stvnrynlds/menus-api.liquid
Shopify LinkList API Workaround
@hama
hama / countries.json
Created May 22, 2019 15:59 — forked from tiagodealmeida/countries.json
List of countries with country code, name, currency code, population, capital and continent name in JSON format
{
"countries": {
"country": [
{
"countryCode": "AD",
"countryName": "Andorra",
"currencyCode": "EUR",
"population": "84000",
"capital": "Andorra la Vella",
"continentName": "Europe"
@hama
hama / ee_funnel.js
Created April 25, 2019 17:29 — forked from leobossmann/ee_funnel.js
Checkout Steps for Enhanced Ecommerce labelling, originally by Rob Edlin, https://ecommerce.shopify.com/c/shopify-discussion/t/checkout-labelling-417229
var step_number = 0;
switch (Shopify.Checkout.step) {
case "contact_information":
step_number = 1;
break;
case "shipping_method":
step_number = 2;
break;
@hama
hama / eosio-curl-command
Created November 7, 2018 00:39 — forked from suryapratap1/eosio-curl-command
eosio-curl-command
/**
@defgroup eosiorpc RPC Interface
@brief Describes how to interface with eosd over HTTP RPC
@section tableofcontent Table Of Contents
- [Configuration](#configuration)
- [Chain API](#chainrpc)
- [get_info](#v1chaingetinfo)
- [get_block](#v1chaingetblock)
- [get_account](#v1chaingetaccount)