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 | |
/** | |
* Pull script example from production to my local Bedrock/Vagrant environment | |
* Requires PHP Deployer 3 | |
* | |
* Andreas Ek, 2015-04-23 | |
*/ | |
date_default_timezone_set( 'Europe/Stockholm' ); |
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
$sender = new \EpostserviceAddress(); | |
$sender->email = "andreas.ek@skolporten.com"; | |
$sender->name = "Andreas Ek"; | |
$sender->userId = 67018485; | |
$sender->created = date("c", time()); | |
$document = new \EpostserviceDocument(); | |
$document->changed = date("c", time()); | |
$document->created = date("c", time()); | |
$document->isemail = true; |
This file has been truncated, but you can view the full file.
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
Request | |
POST /aspnet/api3/api.asmx HTTP/1.0 | |
Host: www.epostservice.se | |
User-Agent: NuSOAP/0.9.5 (1.123) | |
Content-Type: text/xml; charset=ISO-8859-1 | |
SOAPAction: "http://epostservice.se/aspnet/api3/DocumentCreate" | |
Content-Length: 1182 | |
<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3686="http://epostservice.se/aspnet/api3/DocumentCreate"><SOAP-ENV:Body><DocumentCreate xmlns="http://epostservice.se/aspnet/api3"><apiKey>FE0AA375-5BA9-4D96-AF95-BEA89EA79846</apiKey><document><subject>Test via API</subject><name>TEST via API</name><senderAddress><userID>67018485</userID><email>andreas.ek@skolporten.com</email><name>Andreas Ek</name><created>2015-04-23T10:20:56+00:00</created><fields></fields><state>Active</state></senderAddress><state>Draft</state><schedule>1970-01-01T00:00:00.000 |
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: UM - Social Activity Page | |
Description: Page example of UM Social Activity | |
Version: 0.1 | |
Author: EkAndreas | |
Author URI: http://www.andreasek.se/ | |
*/ | |
class UM_Activity_Page { |
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
{ | |
"name": "ekandreas/woops", | |
"type": "project", | |
"require": { | |
"php": ">=5.4", | |
"filp/whoops": "^1.1" | |
} | |
} |
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 | |
/** | |
* Options General Type for theme with Papi | |
* Andreas Ek, 2015-11-30 | |
*/ | |
class Options_General_Type extends Papi_Option_Type | |
{ | |
/** | |
* Where to register the option page to show |
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
dep deploy production |
OlderNewer