Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api instructions #1

Open
nkwsy opened this issue Feb 4, 2016 · 11 comments
Open

api instructions #1

nkwsy opened this issue Feb 4, 2016 · 11 comments

Comments

@nkwsy
Copy link

nkwsy commented Feb 4, 2016

Do you have any instructions for this? Does it work?

@theareba
Copy link
Owner

theareba commented Feb 5, 2016

@nkwsy hi I'm open and was actually willing to create a ruby wrapper for Mpesa API. However due to complex nature of the docs, use of SOAP & availability of end-points at request of Safaricom made it impossible for me to accomplish that. What are your thoughts and suggestions on this? I would love to pull this off.

@theareba
Copy link
Owner

theareba commented Feb 5, 2016

But if you were looking for an example of a gem that I've created to benchmark on, check this out https://github.com/theareba/thetvdb-ruby. Thanks.

@itskingori
Copy link

@nkwsy Looking at the code files, can't see any code. So I figure @theareba didn't get too far with this. Got a little exited at the possibility though. 😁

@theareba
Copy link
Owner

theareba commented Jul 9, 2016

@itsmrwave this is something I would be open to working on in the near future. As stated, the problem with SOAP and nature of the docs made it difficult to kick start.

@itskingori
Copy link

Yeah, I concur.

It's just that an empty project creates expectation (shows up on search) ... which isn't met here. My personal opinion is this shouldn't be up, if it's empty. Or at a minimum, a prototype.

FYI, see check out Project Mulla by @kn9ts. It's what you wanna do, but in JS (Node).

@kn9ts
Copy link

kn9ts commented Jul 9, 2016

@theareba @itsmrwave Just a soft reminder that Project Mulla is platform agnostic. it doesn't care about which language you use. You make HTTP REST requests to it from your backend servers programmed in your preferred language and it gets you back REST JSON payload responses.

@itskingori
Copy link

@kn9ts Yes, but it gives you two things to deploy (and maintain) ... this isn't a bad thing per se, just an observation.

I wanted to write a library when the API was launched as well but got turned off by the documentation and SOAP just like @theareba. Back then I wanted to build it as an extension of an app i.e. if included in the app, it makes the library's routes, controllers and all that available in the app context ... so it simply extends your existing app (deploy one thing instead of two).

That ☝️ ... is my preferred approach. But not to take away from anything you've done. 😁 ... it's still solid work!

@itskingori
Copy link

@theareba If you're interested ... I've started work on an mpesa gem (see here). For use in any Ruby app/script.

After this I'll make mpesa-rails for a Rails app context. That will focus on magical stuff i.e. generating configurable routes in the main app, generating config files and ... more plugging into all that.

@theareba
Copy link
Owner

@itsmrwave this is awesome!!! Will checkout it out over the weekend. For mpesa-rails shouldn't that be part of the gem? So that you'd have generators in the gem that can create those routes, config files etc Or you mean creating an app that consumes your gem?

@theareba
Copy link
Owner

@itsmrwave been a while since I wrote a tutorial on my website http://www.victorareba.com/tutorials so if it turns out great I could write on this.

@itskingori
Copy link

@theareba I think it should be separate. Bundling Rails stuff in here assumes that only Rails people will use this. They should be able to use any framework i.e. Sinatra. Think of this as the core logic only. mesa-rails gem will have this as a dependency and inherit all it's functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants