Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last month.
Improve this question
I am asked to create a gmail command line client in ruby to read,send and receive mails without using any libray or gem
Could anybody suggest me ways to do this?
I have searched for different ways online but all have been using gmail-api gem, basically i am tasked to create this particular gem only.
Gmail has a RESTful api and Ruby has a HTTP module.
You should be able to use that module to access gmail without need for any gems or external libraries.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 days ago.
Improve this question
For a school project we need to develop a webhosting service for PHP and MySQL applications using a stack that consists of these technologies:
Linux
Apache
PHP
Drupal
MySQL
My question is, for small scale web apps.
What types of basic functionalities would you require for a service like this?
How would we go about this?
What is essential (as a web developer) using services like this?
What would you need access to, what would you like to change?
Every individual web app should be isolated as there will be multiple users (shared hosting). This should be achieved with an API, and we are not allowed to make an interface to interact with the endpoints.
We need to gather this information for a school project and would be very appreciative of your help as this is the baseline we will be creating our project from!
Thanks in advance.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm making a back-end for my app using Golang the app is for android,ios and windows and i'm trying to find a way to accept payments.
Is there a package that I can use with examples?
Like some of the comments have mentioned, I also suggest choosing a preferred payment system and then using a Go client library which interfaces with that payment system's REST API.
Here are a few payment libraries: https://golanglibs.com/top?q=payment
Most of these include example files or examples in the readme. Many Go packages also use GoDoc for documentation.
The most popular one on the list there is PayPal-Go-SDK which is a Go client for the PayPal REST API.
It includes an example file: https://github.com/logpacker/PayPal-Go-SDK/blob/master/example_test.go
It has GoDoc documentation: https://godoc.org/github.com/logpacker/PayPal-Go-SDK
If you prefer to use a different payment service like Stripe, they have a similar client: https://github.com/stripe/stripe-go
They also have usage examples: https://github.com/stripe/stripe-go#usage
They also have documentation: https://godoc.org/github.com/stripe/stripe-go
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm writing an web application where I'm using python-eve + mongodb for rest api and angular2 for front end.
Now I'm not sure how to manage user session in python-eve after authentication.
Do I need to write custom middle-ware like Django provide by default?
Any help would be appreciated.
Thanks,
Shashank
Well you are using a REST API and one of the core principles of REST is, precisely, the lack of state/session. Each request carries an authorisation token (or equivalent info depending on the type of authentication) since the server does not maintain state between sessions.
With this being said I know that people have been doing exactly what you are asking for, but really, I would not do that in a REST context.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am new to Amazon Cloud, and trying to create an EC2 instance that can allow multiple users to access at the same time.
While there are plenty of documentations, I haven't found an answer to my question. Whenever those documentations say "user", it refers me. But I want to have an application installed in the instance, and allow more than one of my users to access it simultaneously.
How can I achieve this? Thank you very much!
The same way you would add multiple users to a normal instance. I am going to assume you are using linux and can login to the instance, if not, see this post. Now you just need to add a user, and setup the ssh keys.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have Ruby on Rails application. Curently I'm trying to implement an OAuth API. Is there some way to test this API from Ruby console? In particular I need to do some POST requests to the API.
Basically I need to pretend as a client app from Ruby console, get access token and then call for API methods. Is there some tutorial or article on how to achieve this?
Thanks!
To test the complete OAuth flow and API access, you can use the OAuth2 gem.
You can use the rest-client gem. Besides the Ruby console, you might want to write a small ruby script using rest-client to automate your manual tests.