Le funzioni per gli sviluppatori
Ai fine di consentire l'integrazione delle funzionalità di Multidialogo all'interno di altre applicazioni come il tuo sito web o il gestionale dela tua azienda, lo staff tecnico ha sviluppato alcuni utili servizi ed interfacce di programmazione di facile utilizzo ed elevata flessibilità.
Documentazione:
Per utilizzare i servizi è necessario possedere un account su Multidialogo ed avere attivato il modulo necessario per accedere alle funzionalità del servizio richiesto. L'integrazione di Multidialogo è basata su una semplice richiesta http e passaggio di parametri tramite metodo get o post. Di seguito è riportato l'elenco delle azioni disponibili e dei parametri richiesti, oltre che esempi di utilizzo e codice da copiare pronto all'uso.
'check_cap'|'get_analytics'
RIEPILOGO SUPPORTO OPERAZIONI API CON SU:
- sendsms, sendfax, sendposta, [SI, se master]
- sendemail, sendshare [NO]
- set [NO]
- get [SOLO SU OGGETTO USER, per recuperare informazioni relative all'account quali configurazioni, credito e condivisioni]
- report [SI]
- charge [NO]
- list_az_cat [NO]
- report_list [SI] - optional
[ { "nome":'nomecampo', (string) nome campo "valore":'valorecampo', (string) valore "hidden":false, (bool) indica se il campo è nascosto in visualizzazione sulla piattaforma } ]
[ { "idaccounts":'elenco id master (opzionale)', (array) se non indicato si usano tutti i master del segnalatore "indexes":'elenco di indici da ritornare (opzionale)', (array) se non indicato vengono ritornati tutti gli indici "year": anno di cui si vogliono i dati (opzionale) (string) se non indicato viene usato l'anno corrente "include_childs":'include le cal dei master (opzionale)', (bool) se non indicato é settato a true } ]
[ { "custom_id":'id personale (opzionale)', (string) id cliente (viene ritornato nel result) "cap":'cap', (string) valore del cap "affrancatura": tipo affrancatura, (string) tipo di affrancatura (vedi affrancatura) "vector":'vettore', (string) tipo vettore "nazione":'nazione', (string) nazione del cap } ]
Aggiunto supporto per metodi sendemail e sendshare.
Parametro presente per retrocompatibilità, ma sostituito dal più recente e strutturato parametro files. - optional
Aggiunto supporto per metodi sendemail e sendshare.
Parametro presente per retrocompatibilità, ma sostituito dal più recente e strutturato parametro files. - optional
Aggiunto supporto per metodi sendemail e sendshare.
Parametro presente per retrocompatibilità, ma sostituito dal più recente e strutturato parametro files. - optional
[ { "name":"filename.pdf", (string) nome del file "size":7097, (int) dimensione del file in byte "data":"" (base64Binary) contenuto del file codificato in base64. "delta":null (int) numero pagine per destinatario in caso di Posta Unica, altrimenti null. } ]
[ { "id":1, (int) identificativo ruolo "nome":'categoria1', (string) descrizione ruolo } ]
[ { "id":1, (int) identificativo ruolo "descrizione":'ruolo1', (string) descrizione ruolo } ]
[ { "nome":'nomecampo', (string) nome campo "valore":'valorecampo', (string) valore "hidden":false, (bool) indica se il campo è nascosto in visualizzazione sulla piattaforma } ]
[ { "fr":'SI'|'NO', (string) stampa fronte retro "colore":'SI'|'NO', (string) stampa a colori "formato":'A4', (string) formato stampa "grammatura":'80', (string) grammatura stampa "pinzatura":1|0, (smallint) pinzatura stampa "file":{ "name":"filename.pdf", (string) nome del file "size":7097, (int) dimensione del file in byte "data":"" (base64Binary) contenuto del file codificato in base64 } } ]
[ { "file":{ "name":"filename.pdf", (string) nome del file "size":7097, (int) dimensione del file in byte "data":"" (base64Binary) contenuto del file codificato in base64 } } ]
[ { "fr":'SI'|'NO', (string) stampa fronte retro "colore":'SI'|'NO', (string) stampa a colori "formato":'A4', (string) formato stampa "grammatura":'80', (string) grammatura stampa "pinzatura":1|0, (smallint) pinzatura stampa "npag": 1, (int) numero pagine allegato } ]
[ { "nome":'nomecampo', (string) nome campo "valore":'valorecampo', (string) valore "hidden":false, (bool) indica se il campo è nascosto in visualizzazione sulla piattaforma } ]
[ { "name":"filename.pdf", (string) nome del file "size":7097, (int) dimensione del file in byte "data":"" (base64Binary) contenuto del file codificato in base64 "delta":null (int) numero pagine per destinatario in caso di Posta Unica, altrimenti null. "ide":"" (string) identificativo univoco file } ]
[ { "fr":'SI'|'NO', (string) stampa fronte retro "colore":'SI'|'NO', (string) stampa a colori "formato":'A4', (string) formato stampa "grammatura":'80', (string) grammatura stampa "pinzatura":1|0, (smallint) pinzatura stampa "file":{ "ide":"idefile1", (string) Identificativo file di riferimento. Riferimento ad un file inserito nel parametro generale files. } } ]
[
{
"file":{
"ide":"idefile1", (string) Identificativo file di riferimento. Riferimento ad un file inserito nel parametro generale files.
}
}
]
- invio sms a 2 contatti presenti in rubrica.
- invio fax a 3 contatti presenti in rubrica. Un contatto possiede un allegato personalizzato oltre al file del fax comune per tutti i destinatari.
- invio posta archivio con aggiunta di un allegato comune da inserire per tutti i destinatari.
- invio email a 2 contatti presenti in rubrica. Un contatto possiede un allegato personalizzato oltre al file allegato email comune per tutti i destinatari. Sono state inoltre specificate delle parole chiavi personalizzate per ciascun destinatario ed è stato abilitato l'utilizzo dell parole chiave.
"iomode":"json", "action":"multisend", "auth":{ "user":"testuser", "pass":"95670a6e818de6587c9df172ad7fg635" }, "memo":"Promemoria invio preferenziale 2", "notify_email":"info@netbuilder.it", "files":[ { "name":"file_esempio_fax.pdf", "size":false, "data":"DQo=", "ide":"filexfax" }, { "name":"file_esempio_posta.zip", "size":false, "data":"", "ide":"filexposta" }, { "name":"file_esempio_email.pdf", "size":false, "data":"DQo=", "ide":"filexemail" }, { "name":"file_esempio_allegato.pdf", "size":false, "data":"DQo=", "ide":"fileallegatocomune" } ], "sendlist":[ { "action":"sendsms", "msg":"messaggio sms", "sender":"MittSms", "dest":[ { "objtype":"CONTATTO", "id":"6453" }, { "objtype":"CONTATTO", "id":"6454" } ] }, { "action":"sendfax", "msg":"Testo Copertina Fax.", "sender":"MittFax", "fax_options":{ "sender":{ "fax":"3905217433231" }, "first_page":1 }, "dest":[ { "objtype":"CONTATTO", "id":"6453" }, { "objtype":"CONTATTO", "id":"6454" }, { "objtype":"CONTATTO", "id":"6455", "files":[ { "ide":"fileallegatocomune" } ] } ], "files":[ { "ide":"filexfax" } ] }, { "action":"sendposta", "sender":"Mittente Posta", "posta_options":{ "mode":"ARCHIVE", "optimizes_postage":0, "page_mode":"FRONT", "print_color":"BW", "delivery_type":"RACCOMANDATA", "dest_type":"BOTH", "staple":"0", "file_descriptor":"Param.xml", "attach":[ { "fr":"NO", "colore":"NO", "formato":"A4", "grammatura":"80", "pinzatura":"0", "file":{ "ide":"fileallegatocomune" } } ], "sender":{ "indirizzo":"via zarotto 63", "cap":"43034", "citta":"Parma", "provincia":"PR", "nazione":"IT" } }, "files":[ { "ide":"filexposta" } ] }, { "action":"sendemail", "dest":[ { "objtype":"CONTATTO", "id":"6453", "files":[ { "ide":"fileallegatocomune" } ], "keywords":[ { "name":"{mykeyword1}", "value":"valore1" } ] }, { "objtype":"CONTATTO", "id":"6454", "keywords":[ { "name":"{mykeyword1}", "value":"valore2" } ] } ], "mail_options":{ "from":"info@netbuilder.it", "subject":"Oggetto mail preferenziale", "body":"Corpo mail.keyword1:{mykeyword1}", "use_pec":0, "use_keywords":1, "use_pec_master":0, }, "files":[ { "ide":"filexemail" } ] } ]
{ "multisendcode":"XXXXXXXXXXXXX", "sendsms.0":{ "sendsms":{ "codiceinvio":"XXXXX-XXXXXXXXXXXX", "sent":2, "sent_error":null, "dest_error":null }, "status":"ok" }, "sendfax.1":{ "sendfax":{ "codiceinvio":"XXXXX-XXXXXXXXXXXX", "sent":2, "sent_error":null, "dest_error":null }, "status":"ok", "dest":{ "2":{ "sendfax":{ "codiceinvio":"XXXXX-XXXXXXXXXXXX", "sent":1, "sent_error":null, "dest_error":null }, "status":"ok" } } }, "sendposta.2":{ "sendposta":{ "codiceinvio":"XXXXX-XXXXXXXXXXXX", "sent":null, "sent_error":null, "dest_error":null }, "status":"ok" }, "sendemail.3":{ "sendemail":{ "destinatari":2 ,"sendcode":"XXXXX-XXXXXXXXXXXX" }, "status":"ok" } }
{ "report": { "multisendcode": "XXXXXXXXXXXXXX", "creation": "1-apr-2014 09:27", "memo": "Promemoria invio preferenziale", "author": "test author", "nqueue": "6", "queue_type": [ { "code": "F", "label": "Fax", "nqueue": 3 }, { "code": "M", "label": "Email", "nqueue": 1 }, { "code": "PA", "label": "Posta archivio", "nqueue": 1 }, { "code": "S", "label": "Sms", "nqueue": 1 } ], "recipient": "8", "sent": "0", "queue_details": [ { "queue_type_code": "F", "sendcode": "XXXXXXXXXXXXXX", "creation": "1-apr-2014 09:27", "delivery": "1-apr-2014 09:27", "creation_iso": "2014-04-01 09:27", "delivery_iso": "2014-04-01 09:27", "memo": "Promemoria invio preferenziale", "recipient": "1", "sent": "0", "enable": "1", "status": "Attesa", "author": "test author", "author_username": "testauthor", "type": "FAX", "total_price": "0,00", "print_price": "0,00", "postage_price_pt": "0,00", "postage_price_tnt": "0,00", "inserts_price": "0,00", "postage_price": "0,00", "staple_price": "0,00", "realtime_price": "0,00", "tax_price": "0,00", "extra_price": "0,00", "print_price_iva": "22%", "postage_price_pt_iva": "0", "postage_price_tnt_iva": "22%", "inserts_price_iva": "22%", "staple_price_iva": "22%", "realtime_price_iva": "22%", "tax_price_iva": "22%", "extra_price_iva": "22%", "indirect_payment": 0 }, { "queue_type_code": "S", "sendcode": "XXXXXXXXXXXXXX", "creation": "1-apr-2014 09:27", "delivery": "1-apr-2014 09:27", "creation_iso": "2014-04-01 09:27", "delivery_iso": "2014-04-01 09:27", "memo": "Promemoria invio preferenziale", "recipient": "2", "sent": "0", "enable": "1", "status": "Attesa", "author": "test author", "author_username": "testauthor", "type": "SMS", "total_price": "0,00", "print_price": "0,00", "postage_price_pt": "0,00", "postage_price_tnt": "0,00", "inserts_price": "0,00", "postage_price": "0,00", "staple_price": "0,00", "realtime_price": "0,00", "tax_price": "0,00", "extra_price": "0,00", "print_price_iva": "22%", "postage_price_pt_iva": "0", "postage_price_tnt_iva": "22%", "inserts_price_iva": "22%", "staple_price_iva": "22%", "realtime_price_iva": "22%", "tax_price_iva": "22%", "extra_price_iva": "22%", "indirect_payment": 0 }, { "queue_type_code": "F", "sendcode": "XXXXXXXXXXXXXX", "creation": "1-apr-2014 09:27", "delivery": "1-apr-2014 09:27", "creation_iso": "2014-04-01 09:27", "delivery_iso": "2014-04-01 09:27", "memo": "Promemoria invio preferenziale", "recipient": "2", "sent": "0", "enable": "1", "status": "Attesa", "author": "test author", "author_username": "testauthor", "type": "FAX", "total_price": "0,00", "print_price": "0,00", "postage_price_pt": "0,00", "postage_price_tnt": "0,00", "inserts_price": "0,00", "postage_price": "0,00", "staple_price": "0,00", "realtime_price": "0,00", "tax_price": "0,00", "extra_price": "0,00", "print_price_iva": "22%", "postage_price_pt_iva": "0", "postage_price_tnt_iva": "22%", "inserts_price_iva": "22%", "staple_price_iva": "22%", "realtime_price_iva": "22%", "tax_price_iva": "22%", "extra_price_iva": "22%", "indirect_payment": 0 }, { "queue_type_code": "F", "sendcode": "XXXXXXXXXXXXXX", "creation": "1-apr-2014 09:27", "delivery": "1-apr-2014 09:27", "creation_iso": "2014-04-01 09:27", "delivery_iso": "2014-04-01 09:27", "memo": "Promemoria invio preferenziale", "recipient": "1", "sent": "0", "enable": "1", "status": "Attesa", "author": "test author", "author_username": "testauthor", "type": "FAX", "total_price": "0,00", "print_price": "0,00", "postage_price_pt": "0,00", "postage_price_tnt": "0,00", "inserts_price": "0,00", "postage_price": "0,00", "staple_price": "0,00", "realtime_price": "0,00", "tax_price": "0,00", "extra_price": "0,00", "print_price_iva": "22%", "postage_price_pt_iva": "0", "postage_price_tnt_iva": "22%", "inserts_price_iva": "22%", "staple_price_iva": "22%", "realtime_price_iva": "22%", "tax_price_iva": "22%", "extra_price_iva": "22%", "indirect_payment": 0 }, { "queue_type_code": "PA", "sendcode": "XXXXXXXXXXXXXX", "creation": "1-apr-2014 09:27", "delivery": "1-apr-2014 09:27", "creation_iso": "2014-04-01 09:27", "delivery_iso": "2014-04-01 09:27", "memo": "Promemoria invio preferenziale", "recipient": "0", "sent": "0", "enable": "1", "status": "Attesa", "author": "test author", "author_username": "testauthor", "type": "POSTA ARCHIVIO", "notification": "info@xxxxxxx.it", "total_price": "0,00", "print_price": "0,00", "postage_price_pt": "0,00", "postage_price_tnt": "0,00", "inserts_price": "0,00", "postage_price": "0,00", "staple_price": "0,00", "realtime_price": "0,00", "tax_price": "0,00", "extra_price": "0,00", "print_price_iva": "22%", "postage_price_pt_iva": "0", "postage_price_tnt_iva": "22%", "inserts_price_iva": "22%", "staple_price_iva": "22%", "realtime_price_iva": "22%", "tax_price_iva": "22%", "extra_price_iva": "22%", "indirect_payment": 0 }, { "queue_type_code": "M", "sendcode": "XXXXXXXXXXXXXX", "creation": "2014-04-01 09:27", "first_delivery": "", "delivery": "", "memo": "Promemoria invio preferenziale", "enable": "1", "status": "waiting", "share": "0", "pec": "0", "subject": "Oggetto mail preferenziale", "recipient": "2", "sent": "0", "viewed": 0, "errors": 0, "unsubscription": 0 } ], "global_price": "0,00" }, "status": "ok" }
- _args = {
- "iomode" : "json" | "jsonp" | "phpserial",
- "action" : "sendsms" | "sendfax" | "sendposta" | "sendemail" | "sendshare" | "set" | "get" | "getall" | "del" | "report" | "report_list" | "charge" | "list_az_cat" | "get_prices",
-
"auth" : {
- "user" : "username",
- "pass" : "34819d7beeabb9260a5c854bc85b3e44",
- "su" : "opaque",
- "callback" : "",
- "memo" : "",
- "msg" : "",
- "delivery_time" : "",
- "sender" : "",
- "notify_email" : "",
- "client" : "",
-
"custom" : [
-
{
- "nome" : "nome1",
- "valore" : "valore1",
- "hidden" :
-
{
-
"posta_options" : {
- "mode" : "NORMAL" | "ARCHIVE" | "UNIQUE",
- "optimizes_postage" : "true" | "false",
- "page_mode" : "FRONT" | "BOTH",
- "print_color" : "BW" | "COLOR",
- "delivery_type" : "PRIORITARIA" | "RACCOMANDATA" | "RACCOMANDATAAR" | "TARGET" | "RACCOMANDATA1" | "RACCOMANDATA1AR",
- "dest_type" : "RAGSOC" | "NOME" | "BOTH",
- "deny_logo" : "true" | "false",
- "logo_type" : "P" | "M",
- "staple" : "true" | "false",
- "file_descriptor" : "",
- "skip_cap_errors" : "true" | "false",
- "skip_dest_match" : "true" | "false",
-
"attach" : [
-
{
- "fr" : "SI" | "NO",
- "colore" : "SI" | "NO",
- "formato" : "A4",
- "grammatura" : "80",
- "pinzatura" : "1" | "0",
-
"file" : {
- "name" : "filename.pdf",
- "size" : "7097",
- "data" : "",
-
{
-
"attach_in" : [
-
{
-
"file" : {
- "name" : "filename.pdf",
- "size" : "7097",
- "data" : "",
-
"file" : {
-
{
-
"sender" : {
- "indirizzo" : "",
- "cap" : "",
- "citta" : "",
- "provincia" : "",
- "nazione" : "",
-
"mb" : {
- "nome" : "",
- "cognome" : "",
- "denom" : "",
- "indirizzo" : "",
- "cap" : "",
- "citta" : "",
- "provincia" : "",
- "nazione" : "",
- "buste" : "A" | "C",
- "dest_sheet" : "true" | "false",
-
"fax_options" : {
-
"sender" : {
- "fax" : "",
- "first_page" : "true" | "false",
-
"sender" : {
-
"mail_options" : {
- "from" : "",
- "subject" : "",
- "body" : "",
- "unsubscribe_text" : "",
- "unsubscribe_align" : "L" | "C" | "R",
- "use_pec" : "true" | "false",
- "use_pec_master" : "true" | "false",
- "use_keywords" : "true" | "false",
-
"share_options" : {
- "permission" : "",
- "expire" : "",
- "destination" : "",
- "dirname" : "",
- "read_certify" : "",
- "body" : "",
-
"get_options" : {
- "user_config" : "true" | "false",
- "user_credit" : "true" | "false",
- "user_shares" : "true" | "false",
- "user_template" : "true" | "false",
- "filter_shares" : "",
- "commissions" : "true" | "false",
-
"commissions_filters" : {
- "details" : "true" | "false",
- "year" :
- "month" :
- "username" : "",
- "account_code" : "",
- "go_login" : "true" | "false",
-
"getall_options" : {
- "objtype" : "USER" | "AZIENDA" | "CONTATTO" | "CONTATTO_AZ" | "AZIENDA_CAT" | "CONTATTO_CAT" | "CONTATTO_AZ_ROLE",
-
"filter" : {
- "deny_newsletter" : "true" | "false",
-
"report_options" : {
- "action" : "*" | "sendsms" | "sendfax" | "sendposta" | "sendemail",
- "sendcode" : "",
- "dest_details" : "true" | "false",
- "from_date" : "2012-01-01",
- "to_date" : "2012-12-31",
- "status" : "",
- "get_child" :
- "apply_iva" :
- "from_date_update" : "2012-01-01",
- "to_date_update" : "2012-12-31",
- "multisend" : "1" | "2" | "3",
-
"charge_options" : {
- "chargecode" : "E-EURO25" | "E-EURO50" | "E-EURO100" | "E-EURO250" | "E-EURO500" | "E-EURO1000",
- "pptrid" : "",
- "filesdata" : "",
- "filesnames" : "",
- "filesizes" : "",
-
"files" : [
-
{
- "name" : "filename.pdf",
- "size" :
- "data" : "",
- "delta" :
-
{
-
"get_prices_options" : {
- "action" : "sms" | "fax" | "posta",
- "ndest" : "",
- "sms_tipo" : "basic" | "classic" | "report",
- "sms_nmsg" :
- "npag" :
- "fax_prefix" : "39",
- "posta_affrancatura" : "P" | "R" | "AR" | "T" | "R1" | "R1R",
- "posta_ottimizza" : "1" | "0",
- "posta_formato" : "A4",
- "posta_grammatura" : "80",
- "posta_fr" : "1" | "0",
- "posta_colore" : "1" | "0",
- "posta_pinzatura" : "1" | "0",
- "posta_realtime" : "1" | "0",
-
"posta_attach" : [
-
{
- "fr" : "1" | "0",
- "colore" : "1" | "0",
- "formato" : "A4",
- "grammatura" : "80",
- "pinzatura" : "1" | "0",
- "npag" :
-
{
-
"dest_options" : {
- "create" : "true" | "false",
- "limit" :
- "dest_str" : "numero",
-
"dest" : [
-
{
- "objtype" : "AZIENDA" | "CONTATTO" | "USER" | "CONTATTO_AZ",
- "id" : "",
- "unique" : "",
- "parent_id" : "",
- "parent_unique" : "",
- "codice" : "",
- "condivisa" : "true" | "false",
- "ragionesociale" : "",
- "nome" : "",
- "cognome" : "",
- "soprannome" : "",
- "cf" : "",
- "piva" : "",
- "comune" : "",
- "prov" : "",
- "regione" : "",
- "nazione" : "",
- "localita" : "",
- "indirizzo" : "",
- "cap" : "",
- "web" : "",
- "telefono" : "",
- "telefono2" : "",
- "cellulare" : "",
- "fax" : "",
- "email" : "",
- "dipendenti" :
- "soci" :
- "collaboratori" :
- "fatturato" :
- "note" : "",
- "deny_newsletter" :
- "date_change_nl" : "2012-01-31",
-
"cat" : [
-
{
- "id" : "",
- "nome" : "",
-
{
-
"ruoli" : [
-
{
- "id" : "",
- "descrizione" : "",
-
{
-
"custom" : [
-
{
- "nome" : "nome1",
- "valore" : "valore1",
- "hidden" : "",
-
{
-
"costo" : {
- "stampa" :
- "affrancatura" :
- "inserto" :
-
{
- {
- "status" : "ok" | "error",
-
"param" : {
- "warnings" : "param error description",
-
"action" : {
- "codiceinvio" : "sent code",
- "sendcode" : "sent code",
- "sent" : "report sent",
- "sent_error" : "sent error count",
- "dest_error" : "sent error description",
- "insert" : "objects insert count",
- "update" : "objects update count",
- "creation" : "report creation date",
- "delivery" : "report delivery time",
- "memo" : "report memo",
- "recipient" : "report recipient",
- "viewed" : "report mail viewed",
- "traffic" : "report mail traffic",
- "enable" : "report send enable",
- "status" : "report send status",
- "warnings" : "action error description",
- Invio Sms
- Invio Fax
- Invio Posta
- Invio Email
- Invio Condivisioni
- Set
- Get
- Getall
- Report
- list_az_cat
- Get Prices
Semplice invio con stringa numeri destinatari generica separati da virgola.
Invio con destinatari da contatti rubrica e opzione per creare nuovi contatti se non esistono.
Semplice invio con stringa numeri destinatari generica separati da virgola e testo fax manuale.
Invio con destinatari da db aziende e opzione per creare nuove aziende se non esistono.Upload diretto dei file da inviare.
Semplice invio con lista destinatari generica (nessun passaggio di id o unique, parametro dest_options[create] false).Upload diretto dei file da inviare.
Invio con lista destinatari presa da db aziende e identificazione aziende tramite parametro unique.Upload diretto dei file da inviare.
Semplice invio posta archivio di tipo prioritaria.
Semplice invio posta unica di tipo prioritaria con 2 allegati.
Semplice invio singola mail a destinatario generico.
Semplice invio mail a 2 aziende già presenti con allegato.
Semplice creazione di una cartella condivisa.
Semplice inserimento/aggiornamento di 2 contatti e 2 aziende.
Semplice recupero dei dati di un contatto tramite unique.
Semplice recupero dlle informazioni relative al mio account.Recupero impostazioni di configurazione, credito residuo e condivisioni attive verso un indirizzo email specificato in 'get_options[user_shares_filters]'.
Ritorno elenco contatti rubrica dell'account che hanno acconsentito l'invio della newsletter.
Return json:
{ "getall":{ "dest": [ { "objtype":"CONTATTO", "id":"...", "unique":"...", "nome":"...", "cognome":"...", "soprannome":"...", "cf":null, "comune":null, "prov":null, "regione":null, "nazione":"it", "localita":null, "indirizzo":null, "cap":null, "web":null, "telefono":"", "cellulare":"", "fax":"", "email":null, "note":null, "cat":null, "deny_newsletter":0, "date_change_nl":null }, ... ] }, "status":"ok" }
Reportistica operazione sendemail
Return json:
{ "report":{ "sendcode":1297424371, "creation":"11-feb-2011 12:39", "delivery":"11-feb-2011 12:42", "memo":"oggetto mail", "recipient":"3", "sent":"3", "viewed":null, "traffic":"67KB", "enable":1, "status":"completed" }, "status":"ok" }
Reportistica operazione sendfax.
Return json:
{ "report":{ "sendcode":"1285171458-256", "creation":"22-set-2010 18:04", "delivery":"22-set-2010 18:04", "memo":"test", "recipient":1, "sent":"1", "enable":1, "status":"completed" }, "status":"ok" }
Lista elenco categorie aziende disponibili.
Return json:
{ "list_az_cat": {"categorie":[ {"id":"1","nome":"categoria1"}, {"id":"2","nome":"categoria2"}, ... ] }, "status":"ok" }
Calcolo costo operazione sms
Return json:
{ "get_prices":{ "sms":{ "prezzo_cli":0.89 } }, "status":"ok" }
Calcolo costo operazione fax
Return json:
{ "get_prices":{ "fax":{ "prezzo_cli":1.32 } }, "status":"ok" }
Calcolo costo operazione posta
Return json:
{ "get_prices":{ "posta":{ "prezzo_cli":6.77, "prezzo_cli_pinzatura":0.72, "prezzo_cli_realtime":0.59, "affr_soggetta":true, "prezzo_cli_affr":24.2, "prezzo_cli_attach":5.78 } }, "status":"ok" }
le opzioni configurate nell' interfaccia utente; in caso esse non siano impostate, verranno utilizzati i valori predefiniti di sistema.
Ricordarsi di settare a true la variabile mail_options[sm_enable]
[ { "name":"filename.jpg", (string) nome del file (da API sono accettati solo file tipo jpeg) "size":7097, (int) dimensione del file in byte "data":"" (base64Binary) contenuto del file codificato in base64 } ]
{_NOME_} sostituisce i dati anagrafici del destinatario
{_DATAMAIL_} sostituisce la data di invio della mail
{_OGGETTOEMAIL_} sostituisce l' oggetto della mail
{_ALLEGATI_} sostituisce l' elenco degli allegati inviati ai singoli destinatari
{_NOMEMITTENTE_} sostituisce i dati anagrafici del mittente
{_DATALAND_} sostituisce la data di visualizzaizone della pagina web - optional
[
{
"page_mode" => "FRONT" | "BOTH",
"print_color" => "BW" | "COLOR",
"delivery_type" => "PRIORITARIA" | "RACCOMANDATA" | "RACCOMANDATAAR" | "RACCOMANDATA1" | "RACCOMANDATA1AR"
"dest_type" => "RAGSOC" | "NOME" | "BOTH",
"staple" => "true" | "false",
}
]
[
{
"name" => "Nome Cognome",
"indirizzo" => "",
"cap" => "", In caso di spedizione raccomandata il cap verrà verificato
"citta" => "",
"provincia" => "",
"nazione" => "",
}
]