-YhsdPublicApi and YhsdPrivateApi get post delete put function change url params to path
-FIX scope /r/n change to URI bug
- Add yhsd api resources you can use like:
#get the shop customers limit 50 and page 2 find id,name fields
params = {:fields => "id,name", :page => 2, :limit => 50}
YhsdApi::Customer.all(token, params)
#create a customer for your shop
params = {
"customer": {
"reg_type":"email",
"reg_identity": "for@example.com",
"password":"123456",
"notify_email":"for@example.com",
"notify_phone":"13632269380"
}
}
YhsdApi::Customer.create(token, params)
#update the 1120 id customer
params = {
"customer": {
"notify_email":"new@example.com",
"notify_phone":"13632269381"
}
}
YhsdApi::Customer.update(token, 1120, params)- Add call limit configure you can open call limit configure by use
YhsdApi.configure do |config|
config.call_limit_protect = true
endthis call limit is basic on shop token, so i advice open it in private app and close in public app , public app manage mutil shops, so may be some shop request api over call limit , other shop will be affect
- Basic support yhsd api
- About how to use you can see README.md