{ "info": { "author": "Arthur Rio", "author_email": "arthur@punchtab.com", "bugtrack_url": null, "classifiers": [], "description": "suds-marketo\n============\n\nsuds-marketo is a python query client that wraps the Marketo SOAP API. This package is based on https://github.com/segmentio/marketo-python but uses SUDS instead of manual XML requests. Using SUDS makes it easier to update and allows access to unimplemented functions by calling the suds methods directly (client.yourFunction()).\n\nMarketo SOAP Api: https://jira.talendforge.org/secure/attachmentzip/unzip/167201/49761%5B1%5D/Marketo%20Enterprise%20API%202%200.pdf\n\n## Get Started\n\n```\npip install suds-marketo\n```\n\n```python\nimport suds_marketo\nclient = suds_marketo.Client(soap_endpoint='https://na-q.marketo.com/soap/mktows/2_0',\n user_id='bigcorp1_461839624B16E06BA2D663',\n encryption_key='899756834129871744AAEE88DDCC77CDEEDEC1AAAD66')\n```\n\n## See available functions and objects\n\nYou can see the list of functions and objects available by printing the suds client object.\n\n```python\n> print client.suds_types\n[ActivityRecord, ActivityType, ActivityTypeFilter, ArrayOfActivityRecord, ArrayOfActivityType,\nArrayOfAttrib, ArrayOfAttribute, ArrayOfBase64Binary, ArrayOfCampaignRecord, ArrayOfCustomObj,\nArrayOfInteger, ArrayOfKeyList, ArrayOfLeadChangeRecord, ArrayOfLeadKey, ArrayOfLeadRecord,\nArrayOfLeadStatus, ArrayOfMObjAssociation, ArrayOfMObjCriteria, ArrayOfMObjFieldMetadata,\nArrayOfMObjStatus, ArrayOfMObject, ArrayOfString, ArrayOfSyncCustomObjStatus, ArrayOfSyncStatus,\nArrayOfVersionedItem, Attrib, Attribute, AuthenticationHeaderInfo, CampaignRecord,\nComparisonEnum, CustomObj, ForeignSysType, ImportToListModeEnum, ImportToListStatusEnum,\nLastUpdateAtSelector, LeadActivityList, LeadChangeRecord, LeadKey, LeadKeyRef, LeadKeySelector,\nLeadMergeStatusEnum, LeadRecord, LeadSelector, LeadStatus, LeadSyncStatus, ListKey,\nListKeyType, ListOperationType, MObjAssociation, MObjCriteria, MObjFieldMetadata, MObjStatus,\nMObjStatusEnum, MObject, MObjectMetadata, MObjectTypeEnum, MergeStatus,\nMktowsContextHeaderInfo, ParamsDeleteCustomObjects, ParamsDeleteMObjects,\nParamsDescribeMObject, ParamsGetCampaignsForSource, ParamsGetCustomObjects,\nParamsGetImportToListStatus, ParamsGetLead, ParamsGetLeadActivity, ParamsGetLeadChanges,\nParamsGetMObjects, ParamsGetMultipleLeads, ParamsImportToList, ParamsListMObjects,\nParamsListOperation, ParamsMergeLeads, ParamsRequestCampaign, ParamsScheduleCampaign,\nParamsSyncCustomObjects, ParamsSyncLead, ParamsSyncMObjects, ParamsSyncMultipleLeads,\nReqCampSourceType, ResultDeleteCustomObjects, ResultDeleteMObjects, ResultDescribeMObject,\nResultGetCampaignsForSource, ResultGetCustomObjects, ResultGetImportToListStatus, ResultGetLead,\nResultGetLeadChanges, ResultGetMObjects, ResultGetMultipleLeads, ResultImportToList,\nResultListMObjects, ResultListOperation, ResultMergeLeads, ResultRequestCampaign,\nResultScheduleCampaign, ResultSyncCustomObjects, ResultSyncLead, ResultSyncMObjects,\nResultSyncMultipleLeads, StaticListSelector, StreamPosition, SuccessDeleteCustomObjects,\nSuccessDeleteMObjects, SuccessDescribeMObject, SuccessGetCampaignsForSource,\nSuccessGetCustomObjects, SuccessGetImportToListStatus, SuccessGetLead, SuccessGetLeadActivity,\nSuccessGetLeadChanges, SuccessGetMObjects, SuccessGetMultipleLeads, SuccessImportToList,\nSuccessListMObjects, SuccessListOperation, SuccessMergeLeads, SuccessRequestCampaign,\nSuccessScheduleCampaign, SuccessSyncCustomObjects, SuccessSyncLead, SuccessSyncMObjects,\nSuccessSyncMultipleLeads, SyncCustomObjStatus, SyncOperationEnum, SyncStatus, SyncStatusEnum,\nVersionedItem]\n> print client.suds_methods\n[getCampaignsForSource, deleteCustomObjects, syncMultipleLeads, deleteMObjects, describeMObject,\nlistOperation, mergeLeads, getCustomObjects, getLead, getImportToListStatus, importToList,\nsyncLead, getMObjects, getLeadActivity, getLeadChanges, syncMObjects, scheduleCampaign,\nlistMObjects, syncCustomObjects, requestCampaign, getMultipleLeads]\n\n```\n\nYou can access the methods as follow:\n```python\n> client.getLead(lead_key)\n```\nYou can access the types as follow:\n```python\n> client.LeadKey # Simple type\n> client.LeadKeyRef.EMAIL # Enumeration\n```\n\n## Call functions\n\nIf the function is defined in the client class:\n```python\n> lead = client.get_lead('user@gmail.com')\n```\n\nIf the function you are looking for is not defined in the client class:\n\n```python\n> lead_key = client.LeadKey # You need to create the proper object to pass to the function\n> lead_key.keyType = client.LeadKeyRef.EMAIL\n> lead_key.keyValue = 'test@punchtab.com'\n> resp = client.call_service('getLead', lead_key)\n```\n\n### Error\n\nAn Exception is raised if a Marketo error occurs (caused either by client or server).\n\n```python\n> from suds import WebFault\n> try:\n> lead = client.get_lead('test@punchtab.com')\n> except WebFault as e:\n> print e\n\nServer raised fault: '20103 - Lead not found'\n```\n\nAs described in the Appendix B of the Marketo API, you can access the following error attributes:\n```\n> print e.fault.faultcode\nSOAP-ENV:Client\n\n> print e.fault.faultstring\n20103 - Lead not found\n\n> print e.fault.detail\n(detail){\n serviceException = \n (serviceException){\n name = \"mktServiceException\"\n message = \"No lead found with EMAIL = test@punchtab.com (20103)\"\n code = \"20103\"\n }\n }\n\n> print e.fault.detail.serviceException\n(serviceException){\n name = \"mktServiceException\"\n message = \"No lead found with EMAIL = test@punchtab.com (20103)\"\n code = \"20103\"\n }\n\n> print e.fault.detail.serviceException.name\nmktServiceException\n\n> print e.fault.detail.serviceException.message\nNo lead found with EMAIL = test@punchtab.com (20103)\n\n> print e.fault.detail.serviceException.code\n20103\n```\n\n### License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 PunchTab, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/PunchTab/suds-marketo", "keywords": null, "license": "BSD licence, see LICENCE", "maintainer": null, "maintainer_email": null, "name": "suds_marketo", "package_url": "https://pypi.org/project/suds_marketo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/suds_marketo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/PunchTab/suds-marketo" }, "release_url": "https://pypi.org/project/suds_marketo/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "Python wrapper of the Marketo SOAP Api using SUDS.", "version": "0.1.6" }, "last_serial": 1648548, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5767fd52f7ec9b58c1f2eef5f7766e6c", "sha256": "139cae51d495c96bb15c63a2b15b95ae9743e495ce0da0ccd9894a8f180ddb51" }, "downloads": -1, "filename": "suds_marketo-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5767fd52f7ec9b58c1f2eef5f7766e6c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5644, "upload_time": "2013-08-21T02:43:28", "url": "https://files.pythonhosted.org/packages/4a/9b/518d4d4bfe2eeda60d7dea3196782844625c51d46b82a2b8858c8d4193d4/suds_marketo-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "3fc32473705ca7389e9ff6153a6e0469", "sha256": "69deb13ca72cea1404f7b3df2d48f171ab009a673a3298ed0805752c308825a5" }, "downloads": -1, "filename": "suds_marketo-0.0.2.tar.gz", "has_sig": false, "md5_digest": "3fc32473705ca7389e9ff6153a6e0469", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10866, "upload_time": "2013-08-21T22:54:10", "url": "https://files.pythonhosted.org/packages/88/35/dc7957baa17127fd5fefaf61a4d1359a29f87d03659063d5a18a352145ed/suds_marketo-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "c79cd0bdb7342daa29162a8db9cb3004", "sha256": "59829d108ef48d2a8d60ce42d9ef3e05a7a9075329579f55bf2a215c78268d19" }, "downloads": -1, "filename": "suds_marketo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c79cd0bdb7342daa29162a8db9cb3004", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9873, "upload_time": "2013-08-22T20:53:05", "url": "https://files.pythonhosted.org/packages/03/56/251494a51ff3abe5a174bdd86e3368d5526666d59519eaced60179c8cc57/suds_marketo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "488d55690339d37864d4a8211220d930", "sha256": "8e648c7dce3bd64dfb94e7b479e0f3f30b5fc7df67e13b9b4714a3f4134839d7" }, "downloads": -1, "filename": "suds_marketo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "488d55690339d37864d4a8211220d930", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9870, "upload_time": "2013-08-27T21:33:46", "url": "https://files.pythonhosted.org/packages/a1/76/27e4f473e38065df2cff60275bcb95ef1d642ad935c21b092f47e5c4e5ea/suds_marketo-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "5b3a77c3fad44af3eea347ea63d840e9", "sha256": "a3b06e5ebf90fb7de4984c7a751fbb79fba99a84508ae4b709999cc759f4e29b" }, "downloads": -1, "filename": "suds_marketo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "5b3a77c3fad44af3eea347ea63d840e9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11041, "upload_time": "2013-10-10T03:09:25", "url": "https://files.pythonhosted.org/packages/97/92/40456a91ad3a04f2603e076f14494ab2274c97fb0ab56696fba39cc546fe/suds_marketo-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "855935957c9c72660c85040f3662a0c2", "sha256": "08b43f078159bb94895fe24d64c1f93b96620e0b8ce68047f939ad6a027a13a1" }, "downloads": -1, "filename": "suds_marketo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "855935957c9c72660c85040f3662a0c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11032, "upload_time": "2013-10-10T03:57:30", "url": "https://files.pythonhosted.org/packages/0f/1d/42470f2b3a99070b4350ced56f41cff88f8c9b58ac98269d7c61cb7f5c13/suds_marketo-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "5740ef2aae38dbd0aa3db9f9297353d6", "sha256": "6e012363f2312754d778ed63596175addc756a00b9b461ec7e15a4877338e498" }, "downloads": -1, "filename": "suds_marketo-0.1.4.tar.gz", "has_sig": false, "md5_digest": "5740ef2aae38dbd0aa3db9f9297353d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11042, "upload_time": "2013-10-10T04:54:40", "url": "https://files.pythonhosted.org/packages/3f/23/6d98287cf27242f397b0d44e462a32ef7a1c315b22bf5e4b3ec733df04e5/suds_marketo-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "2fa9ddb386815cccb73a404d94b74f2a", "sha256": "16f1693e1d9c4097315b5953709ecb49275b0fed29e6656f16cb6e46464d995b" }, "downloads": -1, "filename": "suds_marketo-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2fa9ddb386815cccb73a404d94b74f2a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11017, "upload_time": "2014-04-14T18:33:38", "url": "https://files.pythonhosted.org/packages/fd/63/5fac1616aeed53e3cf0abaa2fb8ff9d825841e94056cbe9ec7ae66c01204/suds_marketo-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "8907937a0e267aaef2b8953bde42df93", "sha256": "3c48aceae6e3f9b6f99750c39346ac669b4ebe33e13a9e689e1caf87ff3aace5" }, "downloads": -1, "filename": "suds_marketo-0.1.6.tar.gz", "has_sig": false, "md5_digest": "8907937a0e267aaef2b8953bde42df93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10979, "upload_time": "2015-07-24T18:28:02", "url": "https://files.pythonhosted.org/packages/19/e9/b441fd2c4e0f40737a4fa5af73af078404ee2545d26787de68337377c3ba/suds_marketo-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8907937a0e267aaef2b8953bde42df93", "sha256": "3c48aceae6e3f9b6f99750c39346ac669b4ebe33e13a9e689e1caf87ff3aace5" }, "downloads": -1, "filename": "suds_marketo-0.1.6.tar.gz", "has_sig": false, "md5_digest": "8907937a0e267aaef2b8953bde42df93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10979, "upload_time": "2015-07-24T18:28:02", "url": "https://files.pythonhosted.org/packages/19/e9/b441fd2c4e0f40737a4fa5af73af078404ee2545d26787de68337377c3ba/suds_marketo-0.1.6.tar.gz" } ] }