<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoppy0066</author_name>
  <author_url>https://blog.hatena.ne.jp/yoppy0066/</author_url>
  <blog_title>とりあえずphpとか</blog_title>
  <blog_url>https://kimagureneet.hatenablog.com/</blog_url>
  <categories>
    <anon>ionic2</anon>
    <anon>angular2</anon>
    <anon>ハイブリッドアプリ</anon>
    <anon>typescript</anon>
  </categories>
  <description>はじめに 今回やりたかったことは以下 ・APIのURLを開発と本番で切り替えられるようにしたい ・アプリ全体で認証トークンをhttpヘッダーに含めたいこれらを満たすAPIリクエストの共通処理実装したのでメモしておく。 APIのURLを開発と本番で切り替える こちらのURLのとおりにやったらできた。 http://roblouie.com/article/296/ionic-2-environment-variables-the-best-way/webpackの設定とかはURLのとおりにやればできる。あとは以下のように各々呼び出せるようになる。 import { Injectable, Inj…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkimagureneet.hatenablog.com%2Fentry%2F2017%2F10%2F16%2F221408&quot; title=&quot;【ionic2】apiリクエストをproviderで共通処理化する - とりあえずphpとか&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-10-16 22:14:08</published>
  <title>【ionic2】apiリクエストをproviderで共通処理化する</title>
  <type>rich</type>
  <url>https://kimagureneet.hatenablog.com/entry/2017/10/16/221408</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
