需求:使用nodejs代碼在SAP Cloud for Customer裏建立Individual customer實例。node
代碼:git
var createAndBind = require('../jerryapp/service/createAccountinC4C.js');github
createAndBind("o0KlM1i2_4-zHRmDk-IWGRlA1Cjc");微信
上述代碼基於微信open IDo0KlM1i2_4-zHRmDk-IWGRlA1Cjc在系統裏建立一個Individual customer。app
createAccountinC4C.js的具體實如今Jerry的github上:ui
https://github.com/i042416/wechat/blob/master/jerryapp/service/createAccountInC4C.jsblog
在命令提示行裏輸入命令node createAccountAndSocialProfile.js:ci
上述代碼會自動在系統裏建立Individual customer,並打印出ID:get
要獲取更多Jerry的原創文章,請關注公衆號"汪子熙":it