测试
全部博文(931)
分类: 架构设计与优化
2019-05-30 22:29:57
首先在Marketing Cloud的UI上创建一个contact:
观察Chrome开发者工具network标签页里的HTTP请求:
这个请求用于读取CSRF token:
点击保存,会发送一个新的HTTP post请求:
把第一步获得的CSRF token填到Postman里的header字段里,如图:
body:
{"CountryCode":"CN","City":"Chengdu","FirstName":"Jerry1","LastName":"Wang1","PostalCode":"610093","RegionCode":"","Street":"天府软件园","HouseNumber":"天府软件园","DateofBirth":null,"ContactPersonFacets":[{"Id":"jerry1@sap.com","IdOrigin":"EMAIL","Obsolete":false,"Invalid":false},{"Id":"","IdOrigin":"PHONE","Obsolete":false,"Invalid":false},{"Id":"","IdOrigin":"MOBILE","Obsolete":false,"Invalid":false},{"Id":"","IdOrigin":"FAX","Obsolete":false,"Invalid":false}],"IsConsumer":true,"Filter":{"MarketingAreaId":"CXXGLOBAL"}}
状态码201,证明创建成功了:
可以在前端看到创建成功的contact:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":