lib/wework/api/methods/provider.rb in wework-1.1.8 vs lib/wework/api/methods/provider.rb in wework-1.1.9

- old
+ new

@@ -13,9 +13,14 @@ def get_register_code template_id, options={} params = {template_id: template_id} post 'service/get_register_code', params.merge(options) end + + def get_register_url template_id, options={} + register_code = get_register_code(template_id, options).register_code + "#{REGISTER_ENDPOINT}?register_code=#{register_code}" + end end end end end \ No newline at end of file