Optimizing Google Translation API calls for iOS

Josh KuehnAlamofire, API, iOS, SwiftLeave a Comment

Recently, I started working on an app that needed the ability to translate text to different languages. That meant looking and finding the right API. I settled on using the Google Cloud Platform Translation API because of its great documentation and assumed reliability. The catch is that it’s not a free service. Google will charge $20 per 1,000,000 characters it … Read More

Consuming a Rails API using Alamofire

Josh KuehnAlamofire, API, iOS, Ruby on Rails, SwiftLeave a Comment

Making network requests in today’s world is a requirement to be successful in the App Store. You might be familiar with the Apple API NSUrlSession or the Swift version UrlSession to make those requests. They get the job done but other libraries have boldly come forward to make the task easier such as Alamofire. I’ll be using Alamofire to show … Read More

Rails API Token Authentication

Josh KuehnAPI, Learning, Ruby on Rails1 Comment

In this post I’m going to be walking you through one way to add basic token authentication to your app. It’s important because in the future you might decide you wanna throttle your API usage to users who might use it excessively and wreck your server. Plus it’s easy to setup so why not? If you’ve been keeping up with … Read More

Rails API Versioning

Josh KuehnAPI, Learning, Ruby on Rails2 Comments

Versioning? Sounds like something I made up but it’s a real thing and you need to care about it say’s I! But really, it’s something you don’t wanna forget about if you want to update your API in the future and not upset your users. Just like applications on your phone and computer, it’s common for APIs to receive updates … Read More

Creating a Rails API

Josh KuehnAPI, Learning, Ruby on Rails3 Comments

This is the first of many posts I plan to make on writing your very own API using Ruby on Rails. I won’t overwhelm you with any great explanation on this first post. My plan is to use the magic of Rails to create a functional¬†API ¬†quickly and then show you how to make a quality and scalable API in … Read More