lib/3scale_api/3scale/api.rb in 3scale_api-1.0.10 vs lib/3scale_api/3scale/api.rb in 3scale_api-1.0.11

- old
+ new

@@ -79,11 +79,13 @@ results.push( {:keys => keys, :id => application.css('id').text, :name => application.css('name').text, :application_id => application.css('application_id').text, - :plan_type => application.css('plan name').text}) + :plan_type => application.css('plan name').text, + :service_id => application.css('service_id').first.text + }) end results end def get_service_plans @@ -117,14 +119,12 @@ response = @conn.put "/admin/api/accounts/#{account_id}/approve.xml", { :provider_key => @provider_key} response.status == 201 end - def signup_express(account_plan_id, application_plan_id, email, org_name, password, service_plan_id, username, - additional_fields = nil) + def signup_express( email, org_name, password, username, additional_fields = nil) params = {:provider_key => @provider_key, :username => username, :password => password, :email => email, - :org_name => org_name, :account_plan_id => account_plan_id, :service_plan_id => service_plan_id, - :application_plan_id => application_plan_id} + :org_name => org_name} if (additional_fields) additional_fields.each do |key, value| params[key] = value end end