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
""" | |
Feature: Events API | |
""" | |
from datetime import datetime, timedelta | |
import json | |
from django.test import TestCase | |
from django.test.client import Client | |
from django.core.urlresolvers import reverse |
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
$this->template = 'sale/xml/tnt_r.tpl'; | |
$xml_ = $this->render(); // build the xml with the order data | |
try { | |
$gsearch = new SoapClient('https://www.mytnt.it/ResiService/ResiServiceImpl.wsdl'); | |
$result = $gsearch->__soapCall('getPDFLabel', array(array('inputXml'=>$xml_))); | |
$result2 = $result->getPDFLabelReturn; | |
if ($result2->documentCorrect == 1 && strlen($result2->binaryDocument)>0){ | |
// sparare il pdf $result2->binaryDocument; |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"strings" | |
"github.com/alecthomas/template" |
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
package main | |
import ( | |
"encoding/csv" | |
"os" | |
"golang.org/x/net/html" | |
) | |
func main() { |