モバイルアプリサービス部@モバイルバックエンドグループの五十嵐です。 これから何回かに分けてherの使い方を書いていこうと思います。 remiprev/her: Her is an ORM (Object Relational Mapper) that maps REST resources to Ruby objects. It is designed to build applications that are powered by a RESTful API instead of a database. 概要 herはActiveRecordのように振る舞うRESTfulAPIのORMです。 今回は、herを使ってOAuth2.0のClientCredentialsGrantのアクセストークンを利用するAPIにアクセスしてみます。 環境 Ruby: 2.2.4p230 Rails:
![[Rails] RESTfulAPIをORMするgem “her” の利用方法(1) | DevelopersIO](https://cdn-ak-scissors.b.st-hatena.com/image/square/c4ba9673af464883e264d1d320af2d2947fae03d/height=288;version=1;width=512/https%3A%2F%2Fdevio2023-media.developers.io%2Fwp-content%2Fuploads%2F2013%2F11%2Frails.jpg)