@@ -535,65 +535,6 @@ module.exports = {
535535 }
536536 ]
537537 } ,
538- 'campaign' : {
539- 'description' : 'Manage campaigns. See http://documentation.mailgun.com/api-campaigns.html' ,
540- 'links' : [ {
541- 'description' : 'Create a new campaign.' ,
542- 'href' : '/campaigns' ,
543- 'method' : 'POST' ,
544- 'title' : 'create' ,
545- 'properties' : {
546- 'id' : {
547- 'type' : 'string'
548- } ,
549- 'name' : {
550- 'type' : 'string'
551- }
552- } ,
553- 'required' : [ 'name' ]
554- } ,
555- {
556- 'description' : 'Returns a list of campaigns.' ,
557- 'href' : '/campaigns' ,
558- 'method' : 'GET' ,
559- 'title' : 'list' ,
560- 'properties' : {
561- 'limit' : {
562- 'type' : 'number'
563- } ,
564- 'skip' : {
565- 'type' : 'number'
566- }
567- }
568- } ,
569- {
570- 'description' : 'Get single campaign info.' ,
571- 'href' : '/campaigns/{id}' ,
572- 'method' : 'GET' ,
573- 'title' : 'info'
574- } ,
575- {
576- 'description' : 'Update campaign.' ,
577- 'href' : '/campaigns/{id}' ,
578- 'method' : 'PUT' ,
579- 'title' : 'update' ,
580- 'properties' : {
581- 'id' : {
582- 'type' : 'string'
583- } ,
584- 'name' : {
585- 'type' : 'string'
586- }
587- }
588- } ,
589- {
590- 'description' : 'Delete campaign.' ,
591- 'href' : '/campaigns/{id}' ,
592- 'method' : 'DELETE' ,
593- 'title' : 'delete'
594- }
595- ]
596- } ,
597538 'stats' : {
598539 'description' : 'Various data and event statistics for you mailgun account. See http://documentation.mailgun.com/api-stats.html' ,
599540 'links' : [ {
@@ -703,6 +644,58 @@ module.exports = {
703644 }
704645 }
705646 } ]
647+ } ,
648+ 'tracking' : {
649+ 'description' : 'Programmatically get and modify domain tracking settings.' ,
650+ 'links' : [ {
651+ 'description' : 'Returns tracking settings for a domain.' ,
652+ 'href' : '/domains/{domain}/tracking' ,
653+ 'method' : 'GET' ,
654+ 'title' : 'info'
655+ } ,
656+ {
657+ 'description' : 'Updates the open tracking settings for a domain.' ,
658+ 'href' : '/domains/{domain}/tracking/open' ,
659+ 'method' : 'PUT' ,
660+ 'title' : 'update' ,
661+ 'properties' : {
662+ 'active' : {
663+ 'type' : [ 'string' , 'boolean' ]
664+ }
665+ } ,
666+ 'required' : [ 'active' ]
667+ } ,
668+ {
669+ 'description' : 'Updates the click tracking settings for a domain.' ,
670+ 'href' : '/domains/{domain}/tracking/click' ,
671+ 'method' : 'PUT' ,
672+ 'title' : 'update' ,
673+ 'properties' : {
674+ 'active' : {
675+ 'type' : [ 'string' , 'boolean' ]
676+ }
677+ } ,
678+ 'required' : [ 'active' ]
679+ } ,
680+ {
681+ 'description' : 'Updates the unsubscribe tracking settings for a domain.' ,
682+ 'href' : '/domains/{domain}/tracking/unsubscribe' ,
683+ 'method' : 'PUT' ,
684+ 'title' : 'update' ,
685+ 'properties' : {
686+ 'active' : {
687+ 'type' : 'boolean'
688+ } ,
689+ 'html_footer' : {
690+ 'type' : 'string'
691+ } ,
692+ 'text_footer' : {
693+ 'type' : 'string'
694+ }
695+ } ,
696+ 'required' : [ 'active' ]
697+ }
698+ ]
706699 }
707700 }
708701}
0 commit comments