{"id":3488,"date":"2019-09-10T15:08:26","date_gmt":"2019-09-10T07:08:26","guid":{"rendered":"http:\/\/www.ponybai.com\/?p=2174"},"modified":"2019-09-10T15:08:26","modified_gmt":"2019-09-10T07:08:26","slug":"%e4%bd%bf%e7%94%a8heroku%e7%9a%84apex%e6%a0%87%e6%b3%a8%e5%92%8c%e5%b7%a5%e4%bd%9c%e6%b5%81%e7%a8%8b-2","status":"publish","type":"post","link":"http:\/\/www.ponybai.com\/?p=3488","title":{"rendered":"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b"},"content":{"rendered":"\n\t\t\t\t\n<h2 class=\"wp-block-heading\">\u5b66\u4e60\u76ee\u6807<\/h2>\n\n\n\n<p>\u5b8c\u6210\u672c\u5355\u5143\u540e\uff0c\u60a8\u5c06\u80fd\u591f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4e86\u89e3\u5982\u4f55\u4f7f\u7528Heroku\u4f7f\u7528Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b\u3002<\/li><li>\u4e86\u89e3Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b\u7684\u7528\u4f8b\u3002<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/trailhead.salesforce.com\/content\/learn\/modules\/salesforce_heroku_integration\/callouts_workflow_with_heroku#-----------callouts-to-heroku-apps--\"><\/a>\u547c\u53ebHeroku\u5e94\u7528\u7a0b\u5e8f<\/h2>\n\n\n\n<p>\u6709\u65f6\uff0c\u7531\u4e8e\u6b63\u5728\u6267\u884c\u7684\u6d41\u7a0b\u7684\u89c4\u6a21\u6216\u7c7b\u578b\uff0cSalesforce\u4e0a\u7684\u4e8b\u4ef6\u9700\u8981\u7531\u5916\u90e8\u7cfb\u7edf\u5904\u7406\u3002\u4f8b\u5982\uff0cSalesforce\u4e2d\u7684\u7528\u6237\u4e0a\u8f7d\u9700\u8981\u8c03\u6574\u5927\u5c0f\u4ee5\u4f9b\u5c06\u6765\u4f7f\u7528\u7684\u56fe\u50cf\u3002Heroku\u53ef\u4ee5\u4eceSalesforce\u63a5\u6536\u4e8b\u4ef6\u5e76\u6267\u884c\u4e00\u4e9b\u54cd\u5e94\u8fc7\u7a0b\u3002\uff08\u53ef\u9009\uff09\u53ef\u4ee5\u4f7f\u7528REST API\u6216Heroku Connect\u5c06\u6d41\u7a0b\u7684\u8f93\u51fa\u5b58\u50a8\u56deSalesforce\u4e2d\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/hy4kyit2a\/f_auto,fl_lossy,q_70\/learn\/modules\/salesforce_heroku_integration\/callouts_workflow_with_heroku\/images\/bcf1a11d4c20a462d2b5db4205b60a33_callouts.jpg\" alt=\"\u8be5\u56fe\u663e\u793a\u4e86Salesforce\u548c\u4ece\u51fa\u7ad9\u6d88\u606f\u89e6\u53d1\u6216\u53d1\u9001\u7684\u6570\u636e\u4e8b\u4ef6\u7684\u6846\u3002 \u7bad\u5934\u6765\u81ea\u6846\u5e76\u6307\u5411\u5305\u542bHeroku\u6258\u7ba1\u7684\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u7684\u53e6\u4e00\u4e2a\u6846\"\/><\/figure>\n\n\n\n<p>\u6839\u636eSalesforce\u4e2d\u7684\u4e8b\u4ef6\u8c03\u7528Heroku\u5e94\u7528\u7a0b\u5e8f\u6709\u4e24\u79cd\u4e3b\u8981\u65b9\u6cd5\uff1a\u5de5\u4f5c\u6d41\u51fa\u7ad9\u6d88\u606f\u6216Apex HTTP\u6807\u6ce8\u3002\u5de5\u4f5c\u6d41\u51fa\u7ad9\u6d88\u606f\u4ee5\u58f0\u660e\u65b9\u5f0f\u8fdb\u884cSOAP\u8c03\u7528\u3002Apex HTTP callout\u4ee5\u7f16\u7a0b\u65b9\u5f0f\u5bf9Heroku\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884cREST\u8c03\u7528\u3002\u65e0\u8bba\u54ea\u79cd\u65b9\u5f0f\uff0cHeroku\u5e94\u7528\u7a0b\u5e8f\u90fd\u4f1a\u6536\u5230\u5e26\u6709\u4e8b\u4ef6\u8be6\u7ec6\u4fe1\u606f\u6709\u6548\u8d1f\u8f7d\u7684\u8bf7\u6c42\uff0c\u7136\u540e\u6267\u884c\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/trailhead.salesforce.com\/content\/learn\/modules\/salesforce_heroku_integration\/callouts_workflow_with_heroku#-----------callouts-with-workflow--\"><\/a>\u5e26\u6709\u5de5\u4f5c\u6d41\u7a0b\u7684\u6807\u6ce8<\/h2>\n\n\n\n<p>\u4f7f\u7528\u5de5\u4f5c\u6d41\uff0c\u60a8\u53ef\u4ee5\u58f0\u660e\u6027\u5730\u5b9a\u4e49\u89c4\u5219\u548c\u5916\u90e8\u7cfb\u7edf\u7684\u6807\u6ce8\u3002\u8be5\u89c4\u5219\u53ef\u4ee5\u8fde\u63a5\u5230\u4efb\u4f55Salesforce\u5bf9\u8c61\uff0c\u5982Contact\u6216Account\uff0c\u5e76\u6839\u636e\u8fd9\u4e9b\u8bb0\u5f55\u4e8b\u4ef6\u89e6\u53d1\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u521b\u5efa<\/li><li>\u521b\u5efa\uff0c\u6bcf\u6b21\u7f16\u8f91<\/li><li>\u521b\u5efa\uff0c\u5e76\u968f\u65f6\u7f16\u8f91\u4ee5\u7b26\u5408\u6807\u51c6<\/li><\/ul>\n\n\n\n<p>\u89c4\u5219\u5fc5\u987b\u5177\u6709\u7b5b\u9009\u4e8b\u4ef6\u7684\u6761\u4ef6\u3002\u5982\u679c\u60a8\u4e0d\u60f3\u8fdb\u884c\u4efb\u4f55\u8fc7\u6ee4\uff0c\u5219\u53ef\u4ee5\u6dfb\u52a0\u59cb\u7ec8\u4e3a\u771f\u7684\u6761\u4ef6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u89c4\u5219\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/hy4kyit2a\/f_auto,fl_lossy,q_70\/learn\/modules\/salesforce_heroku_integration\/callouts_workflow_with_heroku\/images\/dda3cdcbef496affca35c3ac6cabaff7_image-9.png\" alt=\"\u201c\u914d\u7f6e\u5de5\u4f5c\u6d41\u89c4\u5219\u201d\u5bf9\u8bdd\u6846\u7684\u5c4f\u5e55\u622a\u56fe\uff0c\u663e\u793a\u89c4\u5219\u540d\u79f0\u5e94\u4e3a\u201c\u65b0\u5efa\u8054\u7cfb\u4eba\u201d\"\/><\/figure>\n\n\n\n<p>\u8981\u5728\u89c4\u5219\u6267\u884c\u65f6\u8c03\u7528Heroku\u5e94\u7528\u7a0b\u5e8f\uff0c\u8bf7\u5c06\u51fa\u7ad9\u6d88\u606f\u6dfb\u52a0\u5230\u5373\u65f6\u5de5\u4f5c\u6d41\u64cd\u4f5c\u5217\u8868\u4e2d\uff0c\u5e76\u5c06Heroku\u5e94\u7528\u7a0b\u5e8f\u7aef\u70b9\u6307\u5b9a\u4e3a\u7aef\u70b9URL\uff0c\u5982\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/res.cloudinary.com\/hy4kyit2a\/f_auto,fl_lossy,q_70\/learn\/modules\/salesforce_heroku_integration\/callouts_workflow_with_heroku\/images\/04d9346ed6a2c65791cdf4b94bbf0e2d_image-10.png\" alt=\"Configure OUtbound Messaging\u5bf9\u8bdd\u6846\u7684\u5c4f\u5e55\u622a\u56fe\uff0c\u663e\u793a\u540d\u4e3aNew Contact to Heroku\u7684\u6d88\u606f\"\/><\/figure>\n\n\n\n<p>\u5982\u679c\u9009\u62e9<code>Send Session ID<\/code>\uff0cHeroku\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u4f7f\u7528\u8be5\u4ee4\u724c\u4ee3\u8868\u7528\u6237\u8fdb\u884cREST API\u8c03\u7528\u3002\u5982\u679c\u60a8\u4e0d\u53d1\u9001\u4f1a\u8bddID\u3002\u6ca1\u6709\u529e\u6cd5\u68c0\u67e5\u8bf7\u6c42\u662f\u5426\u6709\u6548\u6216\u9632\u6b62\u6076\u610f\u8c03\u7528\u60a8\u7684Heroku\u5e94\u7528\u7a0b\u5e8f\u7684API\u7aef\u70b9\u3002<\/p>\n\n\n\n<p>\u5728Heroku\u65b9\u9762\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u5f00\u6e90Web\u6216REST\u6280\u672f\u5b9e\u73b0\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u3002\u4f46\u7531\u4e8e\u6d88\u606f\u662fSOAP\u683c\u5f0f\uff0c\u56e0\u6b64\u60a8\u9700\u8981\u80fd\u591f\u89e3\u6790XML\u3002\u4f8b\u5982\uff0c\u4f7f\u7528JavaScript\uff0cNode.js\uff0cExpress\u548cexpress-xml-bodyparser\u5e93\uff0c\u8fd9\u91cc\u662f\u4e00\u4e2a\u5904\u7406\u51fa\u7ad9\u6d88\u606f\u5e76\u89e3\u6790SOAP\u6d88\u606f\u7684\u7aef\u70b9\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> app.post(\"\/new_contact\", function(req, res) {\n    var notification = req.body[\"soapenv:envelope\"][\"soapenv:body\"][0][\"notifications\"][0];\n    var sessionId = notification[\"sessionid\"][0];\n    var data = {};\n    if (notification[\"notification\"] !== undefined) {\n      var sobject = notification[\"notification\"][0][\"sobject\"][0];\n      Object.keys(sobject).forEach(function(key) {\n        if (key.indexOf(\"sf:\") == 0) {\n          var newKey = key.substr(3);\n          data[newKey] = sobject[key][0];\n        }\n      }); \/\/ do something #awesome with the data and sessionId\n    }\n    res.status(201).end();\n  }); <\/code><\/pre>\n\n\n\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u6bcf\u6b21\u521b\u5efa\u8054\u7cfb\u4eba\u65f6\uff0cHeroku\u5e94\u7528\u7a0b\u5e8f\u90fd\u4f1a\u6536\u5230\u8054\u7cfb\u4eba\u8be6\u7ec6\u4fe1\u606f\uff0c\u5e76\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5bf9\u6570\u636e\u6267\u884c\u4efb\u4f55\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/trailhead.salesforce.com\/content\/learn\/modules\/salesforce_heroku_integration\/callouts_workflow_with_heroku#-----------callouts-with-apex-triggers--\"><\/a>\u5e26\u6709Apex\u89e6\u53d1\u5668\u7684\u6807\u6ce8<\/h2>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5728Salesforce\u5bf9\u8c61\u4e0a\u5b9a\u4e49Apex\u89e6\u53d1\u5668\u4ee5\u5904\u7406\u4ee5\u4e0b\u4efb\u4f55\u4e8b\u4ef6\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u63d2\u5165<\/li><li>\u66f4\u65b0<\/li><li>\u5220\u9664<\/li><li>\u5408\u5e76<\/li><li>UPSERT<\/li><li>\u53d6\u6d88\u5220\u9664<\/li><\/ul>\n\n\n\n<p>\u89e6\u53d1\u5668\u53ef\u4ee5\u4f7f\u7528Apex\u6807\u6ce8\u5bf9Heroku\u5e94\u7528\u7a0b\u5e8f\u4e0a\u7684\u7aef\u70b9\u8fdb\u884cREST JSON\u8c03\u7528\u3002\u4f8b\u5982\uff0c\u8fd9\u662f\u4e00\u4e2a\u8c03\u7528Heroku\u5e94\u7528\u7a0b\u5e8f\u7684Apex\u89e6\u53d1\u5668\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> trigger NewContactWebhookTrigger on Contact (after insert) {\n  String url = 'https:\/\/foo.herokuapp.com\/new_contact';\n  String content = Webhook.jsonContent(Trigger.new, Trigger.old);\n  Webhook.callout(url, content);\n} <\/code><\/pre>\n\n\n\n<p>\u5f15\u7528\u7684Webhook Apex\u7c7b\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> public class Webhook {\n  public static String jsonContent(List&lt;Object> triggerNew, List&lt;Object> triggerOld) {\n    String newObjects = '[]';\n    if (triggerNew != null) {\n      newObjects = JSON.serialize(triggerNew);\n    }\n    String oldObjects = '[]';\n    if (triggerOld != null) {\n      oldObjects = JSON.serialize(triggerOld);\n    }\n    String userId = JSON.serialize(UserInfo.getUserId());\n    String content = '{\"new\": ' + newObjects + ', \"old\": ' + oldObjects + ', \"userId\": ' + userId + '}';\n    return content;\n  }\n  @future(callout=true) public static void callout(String url, String content) {\n    Http h = new Http();\n    HttpRequest req = new HttpRequest();\n    req.setEndpoint(url);\n    req.setMethod('POST');\n    req.setHeader('Content-Type', 'application\/json');\n    req.setBody(content);\n    h.send(req);\n  }\n} <\/code><\/pre>\n\n\n\n<p>jsonContent\u65b9\u6cd5\u83b7\u53d6\u89e6\u53d1\u5668\u6570\u636e\u5e76\u5c06\u5176\u5e8f\u5217\u5316\u4e3aJSON\u3002callout\u65b9\u6cd5\u4f7f\u7528JSON\u6709\u6548\u8d1f\u8f7d\u5c06HTTP\u53d1\u5e03\u5230Heroku\u3002<\/p>\n\n\n\n<p>\u4e0e\u51fa\u7ad9\u6d88\u606f\u4e00\u6837\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4efb\u4f55\u5f00\u6e90Web\u6216REST\u6280\u672f\u6784\u5efaHeroku\u5e94\u7528\u7a0b\u5e8f\u3002\u4f7f\u7528JavaScript\uff0cNode.js\u548cExpress\uff0c\u7aef\u70b9\u53ef\u4ee5\u5b9a\u4e49\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> app.post(\"\/new_contact\", function(req, res) {\n  \/\/ do something with req.body\n  res.status(201).end();\n}); <\/code><\/pre>\n\n\n\n<p>\u5728\u8bf7\u6c42\u5904\u7406\u7a0b\u5e8f\u4e2d\uff0creq.body\u662f\u4eceApex\u89e6\u53d1\u5668\u53d1\u9001\u7684\u53cd\u5e8f\u5217\u5316JSON\u6570\u636e\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528Apex\u89e6\u53d1\u5668\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u67d0\u79cd\u5f62\u5f0f\u7684\u9884\u5171\u4eab\u5bc6\u94a5\u6765\u9a8c\u8bc1\u8bf7\u6c42\uff0c\u4ece\u800c\u907f\u514d\u6f5c\u5728\u7684\u6076\u610f\u8bf7\u6c42\u3002\u60a8\u8fd8\u53ef\u4ee5\u8ba9\u6709\u6548\u8d1f\u8f7d\u5305\u542b\u4f1a\u8bddID\uff0c\u4ee5\u4fbf\u8ba9Heroku\u5e94\u7528\u7a0b\u5e8f\u5c06REST API\u8bf7\u6c42\u8fd4\u56de\u7ed9Salesforce\u4ee5\u83b7\u53d6\u6216\u66f4\u65b0\u6570\u636e\u3002<\/p>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\u76ee\u6807 \u5b8c\u6210\u672c\u5355\u5143\u540e\uff0c\u60a8\u5c06\u80fd\u591f\uff1a \u4e86\u89e3\u5982\u4f55\u4f7f\u7528Heroku\u4f7f\u7528Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b\u3002 \u4e86\u89e3Apex\u6807\u6ce8\u548c\u5de5 &hellip; <a href=\"http:\/\/www.ponybai.com\/?p=3488\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165],"tags":[],"class_list":["post-3488","post","type-post","status-publish","format-standard","hentry","category-heroku"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b - \u767d\u767d\u968f\u7b14<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.ponybai.com\/?p=3488\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b - \u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"og:description\" content=\"\u5b66\u4e60\u76ee\u6807 \u5b8c\u6210\u672c\u5355\u5143\u540e\uff0c\u60a8\u5c06\u80fd\u591f\uff1a \u4e86\u89e3\u5982\u4f55\u4f7f\u7528Heroku\u4f7f\u7528Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b\u3002 \u4e86\u89e3Apex\u6807\u6ce8\u548c\u5de5 &hellip; \u7ee7\u7eed\u9605\u8bfb\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.ponybai.com\/?p=3488\" \/>\n<meta property=\"og:site_name\" content=\"\u767d\u767d\u968f\u7b14\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-10T07:08:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/res.cloudinary.com\/hy4kyit2a\/f_auto,fl_lossy,q_70\/learn\/modules\/salesforce_heroku_integration\/callouts_workflow_with_heroku\/images\/bcf1a11d4c20a462d2b5db4205b60a33_callouts.jpg\" \/>\n<meta name=\"author\" content=\"ponybai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"ponybai\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3488#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3488\"},\"author\":{\"name\":\"ponybai\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"headline\":\"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b\",\"datePublished\":\"2019-09-10T07:08:26+00:00\",\"dateModified\":\"2019-09-10T07:08:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3488\"},\"wordCount\":85,\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"articleSection\":[\"Heroku\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3488\",\"url\":\"http:\/\/www.ponybai.com\/?p=3488\",\"name\":\"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b - \u767d\u767d\u968f\u7b14\",\"isPartOf\":{\"@id\":\"http:\/\/www.ponybai.com\/#website\"},\"datePublished\":\"2019-09-10T07:08:26+00:00\",\"dateModified\":\"2019-09-10T07:08:26+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.ponybai.com\/?p=3488#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.ponybai.com\/?p=3488\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.ponybai.com\/?p=3488#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/www.ponybai.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ponybai.com\/#website\",\"url\":\"http:\/\/www.ponybai.com\/\",\"name\":\"\u767d\u767d\u968f\u7b14\",\"description\":\"Salesforce\u5b98\u65b9\u8bb2\u5e08\",\"publisher\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ponybai.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883\",\"name\":\"ponybai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg\",\"contentUrl\":\"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg\",\"width\":248,\"height\":248,\"caption\":\"ponybai\"},\"logo\":{\"@id\":\"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/121.37.188.161\"],\"url\":\"http:\/\/www.ponybai.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b - \u767d\u767d\u968f\u7b14","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.ponybai.com\/?p=3488","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b - \u767d\u767d\u968f\u7b14","og_description":"\u5b66\u4e60\u76ee\u6807 \u5b8c\u6210\u672c\u5355\u5143\u540e\uff0c\u60a8\u5c06\u80fd\u591f\uff1a \u4e86\u89e3\u5982\u4f55\u4f7f\u7528Heroku\u4f7f\u7528Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b\u3002 \u4e86\u89e3Apex\u6807\u6ce8\u548c\u5de5 &hellip; \u7ee7\u7eed\u9605\u8bfb\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b","og_url":"http:\/\/www.ponybai.com\/?p=3488","og_site_name":"\u767d\u767d\u968f\u7b14","article_published_time":"2019-09-10T07:08:26+00:00","og_image":[{"url":"https:\/\/res.cloudinary.com\/hy4kyit2a\/f_auto,fl_lossy,q_70\/learn\/modules\/salesforce_heroku_integration\/callouts_workflow_with_heroku\/images\/bcf1a11d4c20a462d2b5db4205b60a33_callouts.jpg"}],"author":"ponybai","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"ponybai","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.ponybai.com\/?p=3488#article","isPartOf":{"@id":"http:\/\/www.ponybai.com\/?p=3488"},"author":{"name":"ponybai","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"headline":"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b","datePublished":"2019-09-10T07:08:26+00:00","dateModified":"2019-09-10T07:08:26+00:00","mainEntityOfPage":{"@id":"http:\/\/www.ponybai.com\/?p=3488"},"wordCount":85,"publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"articleSection":["Heroku"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/www.ponybai.com\/?p=3488","url":"http:\/\/www.ponybai.com\/?p=3488","name":"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b - \u767d\u767d\u968f\u7b14","isPartOf":{"@id":"http:\/\/www.ponybai.com\/#website"},"datePublished":"2019-09-10T07:08:26+00:00","dateModified":"2019-09-10T07:08:26+00:00","breadcrumb":{"@id":"http:\/\/www.ponybai.com\/?p=3488#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.ponybai.com\/?p=3488"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/www.ponybai.com\/?p=3488#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/www.ponybai.com\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528Heroku\u7684Apex\u6807\u6ce8\u548c\u5de5\u4f5c\u6d41\u7a0b"}]},{"@type":"WebSite","@id":"http:\/\/www.ponybai.com\/#website","url":"http:\/\/www.ponybai.com\/","name":"\u767d\u767d\u968f\u7b14","description":"Salesforce\u5b98\u65b9\u8bb2\u5e08","publisher":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ponybai.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/935c7592c850c65e1e5eba4530dbf883","name":"ponybai","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/","url":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg","contentUrl":"http:\/\/www.ponybai.com\/wp-content\/uploads\/2025\/03\/cropped-Ihsans-WeChatQR.jpg","width":248,"height":248,"caption":"ponybai"},"logo":{"@id":"http:\/\/www.ponybai.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/121.37.188.161"],"url":"http:\/\/www.ponybai.com\/?author=1"}]}},"_links":{"self":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3488"}],"version-history":[{"count":0,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=\/wp\/v2\/posts\/3488\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3488"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ponybai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}