README.md in ruby_branch-0.1.0 vs README.md in ruby_branch-0.2.0
- old
+ new
@@ -24,10 +24,11 @@
Configuration:
RubyBranch.configure do |config|
config.api_key = 'YOUR_API_KEY'
+ config.secret_key = 'YOUR_SECRET_KEY'
config.branch_domain = 'YOUR_BRANCH_DOMAIN'
# for fallback in case link creation has been failed
config.link_to_homepage = 'https://yourdomain.com' # optional
end
@@ -40,9 +41,15 @@
# Create link without api forcing
link.create_safely(analytics: {}, data: {}, settings: {})
# Create link through branch api
link.create(analytics: {}, data: {}, settings: {})
+
+ # Update existing link without api forcing
+ link.update_safely(url: url, analytics: {}, data: {}, settings: {})
+
+ # Update existing link through branch api
+ link.update(url: url, analytics: {}, data: {}, settings: {})
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.