Integrate PricePlow API into Rails web app - ruby-on-rails

I am completely new to API's, but I am at a loss as to integrating the PricePlow API ( https://www.priceplow.com/api/documentation/v1/index.html ) into my Rails web app. I've gotten as far as registering for my API key, and running a few of their sample commands in the console. It spits out all of the relevant information, but only in the console. As far as displaying the content onto a webpage, how do I go about integrating it onto my site? I have not found anything online that has worked so far.

Related

Sign in with Apple for react.js app hosted on GitHub Pages

I am building a small web app with react.js to learn how to use it and I would like to learn how to integrate Sign-in with Apple button but I have run into an issue. My project is hosted in GitHub Pages and Apple doesn’t recognize https://username.github.io/repo/ as a valid url when doing the "Web Authentication Configuration” step. I figure I can move my project and get a domain, a real url and, all that but that's far too much work to get a button on a web app that no one will ever see. Is there another way to get it working while still using GitHub Pages? I have been following this tutorial for reference.

React Facebook oAuth with devise_token_auth on Rails

I am attempting to use Rails 5.0.5 API only with devise_token_auth to build a React app. I have the Rails API server running locally on :3001, and my react app (running from within /client folder) is running on :3000.
I am able to register/login/etc. with email/password using axios and API calls, but the oauth is giving me some trouble. It seems that it doesn't want to work with React and the API situation, it loads up a new tab, authenticates with Facebook, then goes to the callback controller on my rails server (:3001). I'm unable to figure out a way for the callback info to be returned to my React app on :3000.
I am able to query facebook manually and receive back the info I need; is there a way to manually create a user based on the Facebook data that will allow me to use devise/devise_token_auth? Do any of you have any better methods for authentication on a React app using Rails API as a backend? I'm pretty new to all of this and not too far into the project, I'm ready to jump ship to a better solution if it exists! Thank you for any information. Please feel free to ask me any questions.

How to reflect web app hosted on EC2 (AWS) on mobile app (iOS)

So my current task at the company I'm interning with is to create a mobile version (iOS) of a web app written using Flask, HTML & CSS that currently exists and is being hosted on AWS's EC2. Assume I'm a complete noob at AWS and only just learned that EC2 is a cloud computing service.
Essentially, I just want to be able to reflect what's currently on EC2 over to a mobile app in a secure fashion. I guess I'm just trying to avoid rebuilding something in Swift that's already been done. For those familiar with WebView in Xcode, I tried to use that to reflect the web page, but it didn't work (I assume because our web app on EC2 requires login credentials when you open it in a browser?).
I thought that maybe using AWS's SDK for iOS would net me some luck, so I installed cocoapods and setup a pod, but don't know how or which of these AWS services will help me achieve what I'm trying to do (from reading the documentation, it seems like their purpose is for building an app, not necessarily just projecting a webpage with data already in it).
For some more information, some key features that I think would be useful for our clients that would be using the app are:
The ability to persist data on the app when their device is offline
Some sort of temporary logins for the users. This app wouldn't be distributed through the app store; it would probably just have to be locally downloaded onto certain clients' devices
Lastly, I saw this post come up before creating this one: Does REST API for mobile apps hosted on https protocol web app will be slow? and I noticed that the asker of this question said "Lets say I have built a mobile app running on Android and iOS platform and REST API's for these apps lie under https based web application." This possibly sounds like something that could be helpful, and if anyone could explain what s/he meant by REST API's and what they are, I would be very grateful.
Any advice on how to proceed from here, using anything, would be much appreciated. Thanks!

Adobe AIR Mobile / OAuth2.0

We are currently trying to add OAuth2.0 for authentication into an existing Adobe AIR mobile app for a client. We are trying to carry this out by using this library https://github.com/charlesbihis/actionscript-oauth2 from this article.
We have tried using instances of the 'StageWebView' class and the Feathers UI 'WebView' class to display the authorization prompt page within the mobile app itself.
When we publish the app locally on our development PCs, the whole process works ok. However, as soon as it is published to our iPad(s) for testing, it is almost as if some security setting stops the "embedded" website from communicating with to the server.
As the website we are trying to communicate with is a https:// address, I'm assuming that this might be causing issues, but I can't confirm this.
Has anyone out there found themselves in a similar situation?
Thanks,
Dave

iOS Google App Engine Mobile Backend starter

I have a few questions on Google's App Engine Mobile Backend Starter. The starter tutorial gives a sample client app but I am confused on how to build my own application to use Google's app engine mobile backend starter. Am I supposed to extend off the Object C code given in the sample app? Or is this documentation of the API sufficient to start my own app from scratch? Does anyone have any links to tutorials on things like this? The ones provided by google do not seem to be very helpful in these regards.

Resources