Git Product home page Git Product logo

ruby-sdk's People

Contributors

biplap-sarkar avatar camerona93 avatar feifanzhou avatar freakinfacu avatar iain-davis avatar leblanc avatar naissa12 avatar ryanmojo avatar skyzyx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-sdk's Issues

Undefined method '+@' thrown in oauth2_authorize_url

Hello,

I just wanted to let you know of an error I was receiving when calling the oauth2_authorize_url method that is part of the Client class. This might be due to having certain versions of certain files, but if I made the following changes:

screenshot of changes

Things seemed to go back to normal for this call. I got the idea from this page:

plusatgooglesearch

and the reason I'm giving you a screenshot instead of a link to that page is because I think the site is actually down now, but google let me view a cached copy of the page that didn't have any styling and some characters missing. Here is THAT link. Hope this helps. Thanks for the gem.

Could you add some good tests for this SDK?

Hi Guys,

Right now wepay-rails uses HTTParty for communications with the wepay api. I'd like to change that and use your SDK instead. We are starting a major testing effort on the wepay-rails gem and I was hoping that you guys could write some around your SDK that can call your service in a real way vs. stubbing out some responses. This would help us to ensure that our code is good as well.

Thanks in advance,

Adam (wepay-rails)

Logging to $stdout

Is there any way to configure and not log to $stdout? or thoughts? I don't like running rspec tests and seeing the net http calls.

I thought of $stdout.stub(:write) for my tests but it wouldn't work well with pry :)

Thanks!

Cancel subscription call returns JSON error?

Hi,

Using rails 4.1.0, wepay 0.0.3

ONLY when I call a cancel subscription call, i am getting this error:

JSON::ParserError:
A JSON text must at least contain two octets!

When i do a raise on the response.body object (raise response.body.inspect) I get this:

"{"subscription_plan_id":1425787008}"

The JSON looks ok. Also, when I do:

JSON.parse("{"subscription_plan_id":1425787008}")

It parses just fine? I am totally stumped as to why I'm getting this error. Anyone else having this problem?

Update RubyGems

'gem unpack wepay' still shows the code which is old and does not contain the recent fixes.
Please update wepay RubyGems with the updated code

Add authorization header correctly

Currently authorization header is added using
call.add_field('Authorization: Bearer', access_token);

This gives error sometimes with message suggesting authorization header should be of type Bearer when the header is not added correctly to the HTTP request

Using header name as 'Authorization' and passing the value 'Bearer <access_token>' works for me as following:-
call.add_field('Authorization', "Bearer #{access_token}");

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.