-2

How to generate Recurly API key, implementing through ruby? I want to use recurly api for billing functionality. And please suggest me something because i am new to Recurly

When I am creating an account, it gives me Access denied :

account = Recurly::Account.create( 
                      :account_code => '1', 
                      :email => 'verena@example.com', 
                      :first_name => 'Verena', 
                      :last_name => 'Example' )
jazzytomato
  • 6,994
  • 2
  • 31
  • 44
  • When i am creating account, account = Recurly::Account.create( :account_code => '1', :email => 'verena@example.com', :first_name => 'Verena', :last_name => 'Example' ) It gives me Access denied. – Palash Kulkarni Feb 16 '15 at 13:46

2 Answers2

1

There's an open source client available for recurly.

Check the Recurly documentation for Ruby, it explains how to setup your application for using this client.

There's also a ruby on rails sample app, using this ruby recurly client here

You can generate an initializer file with the following command :

rails g recurly:config
jazzytomato
  • 6,994
  • 2
  • 31
  • 44
1

https://docs.recurly.com/api/basics/authentication

If I understand your situation correctly, you just need to generate it on the page

Eugene Petrov
  • 1,578
  • 1
  • 10
  • 22