API https://michalak.world/ en Drupal 8 - Sending Faxes with Twilio https://michalak.world/article/drupal-8-sending-faxes-twilio <span>Drupal 8 - Sending Faxes with Twilio</span> <span><span>useradmin</span></span> <span>Sun, 12/06/2020 - 08:53</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p><br /> Yep, you read the title correctly and it says “fax.”  Faxes are still used more than I thought, and it is really cool that Twilio has an API to send and receive faxes that is quite easy to use.</p> <p>Today in this post I will be talking about sending faxes from your Drupal website.  Which is quite easy and doesn’t take much code to achieve.</p> <p>I have pulled together a code example from the Twilio API documents and as you can see below there isn’t much there.</p> <p><code>use Twilio\Rest\Client; </code></p> <p><code>$twilio = new Client($sid, $token);<br /> $to = “+1234567890”;<br /> $from = “+0987654321”;<br /> $document = “https://example.com/document.pdf”;<br /><br /> $response = twilio-&gt;fax-&gt;v1-&gt;faxes-&gt;create($to, $document,["from" =&gt; $from]); </code></p> <p>A couple of notes on the Twilio fax API:</p> <ul><li>There isn’t much of a response back which can make error handling or logging a little difficult.</li> <li>The document being faxed must be a PDF.</li> </ul><p><br /> Resources:</p> <ul><li>Twilio: <a href="https://www.twilio.com/fax">https://www.twilio.com/fax</a></li> </ul></div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=83&amp;2=comment&amp;3=comment" token="LI5W_Ja-CIpAVq29BYN0CHhRaUFC8TFuAew8fUEGPNY"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/api"> <div class="field field--name-name field--type-string field--label-hidden field__item">API</div> </a></h2> <div class="text-content clearfix field field--name-description field--type-text-long field--label-hidden field__item"><p>API</p></div> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-7"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 7</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-development"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/integration"> <div class="field field--name-name field--type-string field--label-hidden field__item">Integration</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/rest-api"> <div class="field field--name-name field--type-string field--label-hidden field__item">REST API</div> </a></h2> </div> </li> </ul> </div> Sun, 06 Dec 2020 14:53:29 +0000 useradmin 83 at https://michalak.world Pantheon - Cloning a Project https://michalak.world/article/pantheon-cloning-project <span>Pantheon - Cloning a Project</span> <span><span>useradmin</span></span> <span>Wed, 08/07/2019 - 12:54</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p>If you need to clone a project within the Pantheon ecosystem Terminus is a great tool to use.</p> <p>First, <a href="https://pantheon.io/docs/terminus/install">install Terminus</a> and then add the <a href="https://github.com/pantheon-systems/terminus-site-clone-plugin">site clone plugin</a>.</p> <p>After authenticating with terminus use the site:clone command</p> <pre> terminus site:clone &lt;source&gt;.&lt;env&gt; &lt;destination&gt;.&lt;env&gt;</pre> <p>&lt;source&gt; and &lt;destination&gt; are either the site names or the site UUIDs.  &lt;env&gt; is the environment, e.g. dev, test, prod or multi dev.</p> <p><strong>Resources</strong></p> <ul><li>I<a href="https://pantheon.io/docs/terminus/install">nstall Terminus</a></li> <li><a href="https://github.com/pantheon-systems/terminus-site-clone-plugin">Terminus's Site Clone Plugin</a></li> <li><a href="https://pantheon.io/docs/terminus">Terminus Documentation</a></li> <li><a href="https://pantheon.io/docs/migrate">Pantheon Migration Documentation</a></li> </ul><p> </p> </div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=76&amp;2=comment&amp;3=comment" token="sJ_UIyQ90zvYFCIevMbx_95Z7pdNofcckWbJLUB-ZJY"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/api"> <div class="field field--name-name field--type-string field--label-hidden field__item">API</div> </a></h2> <div class="text-content clearfix field field--name-description field--type-text-long field--label-hidden field__item"><p>API</p></div> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-7"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 7</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-commerce"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Commerce</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-development"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/update"> <div class="field field--name-name field--type-string field--label-hidden field__item">Update</div> </a></h2> </div> </li> </ul> </div> Wed, 07 Aug 2019 17:54:57 +0000 useradmin 76 at https://michalak.world Drupal 8 Configuration Synchronization https://michalak.world/article/drupal-8-configuration-synchronization <span>Drupal 8 Configuration Synchronization </span> <span><span>useradmin</span></span> <span>Mon, 04/29/2019 - 07:20</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/default_images/cover.png" width="2010" height="1343" alt="Default blog post image" title="Default blog post image" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><h2>Configuration Synchronization</h2> <p>Drupal 8 has a really great configuration synchronization system, and is great for syncing up different environments.  When creating new modules and adding new fuctionality I really enjoy working with Drupal 8's configuration synchronization tool.  Not only does this tool take the guesswork out of updates that need to be made on other environments.  The configuration synchronization also allows for all changes to be documented.  </p> <h2>New Modules and New Functionality</h2> <p>The Drupal 8 content synchronization tool paired with Drupal 8's update hooks are great ways to make all of the new changes portable and documented.  I have adopted this methodology when moving out changes from environment to environment.  Pairing this methodology with a deployment guide and taking out all of the guesswork of what needs to be updated.</p> <h2>Uses for Configuration Synchronization </h2> <p>Types of changes that Drupal 8's configuration synchronization tool are good for: </p> <ul><li>Block Configuration</li> <li>New Content Types</li> <li>Updating Content Types</li> <li>Adding New Fields to Entities</li> <li>Adding or Updating Views</li> <li>Etc.</li> </ul><h2>Conclusion</h2> <p>But I also have a love-hate relationship.  When an installation of a modules gets conflicted with the synchronization then there are headaches, but overall the configuration synchronization is really great.  Once they are worked through then all the headaches are eliminated, usually, just need to rework the install() and uninstall() hooks for the module.</p></div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=69&amp;2=comment&amp;3=comment" token="IQxni0p78o9ZSEWkihFEC7fFRbIcXcDos4BQLuUqJuM"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/api"> <div class="field field--name-name field--type-string field--label-hidden field__item">API</div> </a></h2> <div class="text-content clearfix field field--name-description field--type-text-long field--label-hidden field__item"><p>API</p></div> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/composer"> <div class="field field--name-name field--type-string field--label-hidden field__item">Composer</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-commerce"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Commerce</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-development"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/update"> <div class="field field--name-name field--type-string field--label-hidden field__item">Update</div> </a></h2> </div> </li> </ul> </div> Mon, 29 Apr 2019 12:20:19 +0000 useradmin 69 at https://michalak.world Drupal Development https://michalak.world/video/drupal-development <span>Drupal Development</span> <span><span>useradmin</span></span> <span>Sun, 04/21/2019 - 15:49</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>I am a Drupal developer specializing in Backend Drupal Development and Drupal Commerce Development.</p></div> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/tEojZwF0LBo?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/drupal-development" hreflang="en"><img src="/sites/default/files/video_thumbnails/tEojZwF0LBo.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/api" hreflang="en">API</a></li> <li class="field--tags__item"><a href="/tag/commerce-shipping" hreflang="en">Commerce Shipping</a></li> <li class="field--tags__item"><a href="/tag/composer" hreflang="en">Composer</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/drupal-performance" hreflang="en">Drupal Performance</a></li> <li class="field--tags__item"><a href="/tag/form-api" hreflang="en">Form API</a></li> <li class="field--tags__item"><a href="/tag/integration" hreflang="en">Integration</a></li> <li class="field--tags__item"><a href="/tag/payment-gateway" hreflang="en">Payment Gateway</a></li> <li class="field--tags__item"><a href="/tag/purchase-orders" hreflang="en">Purchase Orders</a></li> <li class="field--tags__item"><a href="/tag/rest-api" hreflang="en">REST API</a></li> <li class="field--tags__item"><a href="/tag/security" hreflang="en">Security</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/video" hreflang="en">Video</a></li> <li class="field--tags__item"><a href="/tag/warehouse-mangement" hreflang="en">Warehouse Mangement</a></li> </ul> </div> Sun, 21 Apr 2019 20:49:23 +0000 useradmin 67 at https://michalak.world Helping you with your Drupal Optimizations https://michalak.world/video/helping-you-your-drupal-optimizations <span>Helping you with your Drupal Optimizations</span> <span><span>useradmin</span></span> <span>Sun, 04/21/2019 - 15:47</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>I am a Drupal Developer and have many years of experience in developing and optimizing the whole stack.</p></div> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/A3arezmmOBA?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/helping-you-your-drupal-optimizations" hreflang="en"><img src="/sites/default/files/video_thumbnails/A3arezmmOBA.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/api" hreflang="en">API</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/drupal-performance" hreflang="en">Drupal Performance</a></li> <li class="field--tags__item"><a href="/tag/security" hreflang="en">Security</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/video" hreflang="en">Video</a></li> </ul> </div> Sun, 21 Apr 2019 20:47:02 +0000 useradmin 66 at https://michalak.world Drupal Experts https://michalak.world/video/drupal-experts <span>Drupal Experts</span> <span><span>useradmin</span></span> <span>Sun, 04/21/2019 - 15:44</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Drupal Expert for hire. Drupal Backend Development and Drupal Commerce Development. I have worked extensively with commerce and the backend of Drupal 7 and Drupal 8.</p></div> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/_9ukA8kUqW0?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/drupal-experts" hreflang="en"><img src="/sites/default/files/video_thumbnails/_9ukA8kUqW0.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/api" hreflang="en">API</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/integration" hreflang="en">Integration</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/video" hreflang="en">Video</a></li> </ul> </div> Sun, 21 Apr 2019 20:44:53 +0000 useradmin 65 at https://michalak.world Drupal Developer https://michalak.world/video/drupal-developer <span>Drupal Developer</span> <span><span>useradmin</span></span> <span>Sun, 04/21/2019 - 15:43</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Introduction about myself as a Drupal Backend Developer/Drupal Commerce Developer</p></div> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/1OEF596XZts?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/drupal-developer" hreflang="en"><img src="/sites/default/files/video_thumbnails/1OEF596XZts.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/api" hreflang="en">API</a></li> <li class="field--tags__item"><a href="/tag/commerce-shipping" hreflang="en">Commerce Shipping</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/drupal-performance" hreflang="en">Drupal Performance</a></li> <li class="field--tags__item"><a href="/tag/drush" hreflang="en">Drush</a></li> <li class="field--tags__item"><a href="/tag/integration" hreflang="en">Integration</a></li> <li class="field--tags__item"><a href="/tag/payment-gateway" hreflang="en">Payment Gateway</a></li> <li class="field--tags__item"><a href="/tag/rest-api" hreflang="en">REST API</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/video" hreflang="en">Video</a></li> </ul> </div> Sun, 21 Apr 2019 20:43:31 +0000 useradmin 64 at https://michalak.world Drupal Project Development Update - Aug. 2018 https://michalak.world/video/drupal-project-development-update-aug-2018 <span>Drupal Project Development Update - Aug. 2018</span> <span><span>useradmin</span></span> <span>Sun, 04/21/2019 - 15:38</span> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Recap of current development. Globalization of client Drupal 7 commerce projec</p></div> <div class="field field--name-field-video field--type-video-embed-field field--label-hidden field__item"><div data-video-embed-field-lazy="&lt;div class=&quot;video-embed-field-provider-youtube video-embed-field-responsive-video&quot;&gt;&lt;iframe width=&quot;854&quot; height=&quot;480&quot; frameborder=&quot;0&quot; allowfullscreen=&quot;allowfullscreen&quot; src=&quot;https://www.youtube.com/embed/79bHNXbyv9k?autoplay=0&amp;amp;start=0&amp;amp;rel=0&quot;&gt;&lt;/iframe&gt; &lt;/div&gt; " class="video-embed-field-lazy"><a href="/video/drupal-project-development-update-aug-2018" hreflang="en"><img src="/sites/default/files/video_thumbnails/79bHNXbyv9k.jpg" alt="" /> </a><button class="video-embed-field-lazy-play"></button> </div> </div> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><a href="/tag/api" hreflang="en">API</a></li> <li class="field--tags__item"><a href="/tag/drupal" hreflang="en">Drupal</a></li> <li class="field--tags__item"><a href="/tag/drupal-7" hreflang="en">Drupal 7</a></li> <li class="field--tags__item"><a href="/tag/drupal-8" hreflang="en">Drupal 8</a></li> <li class="field--tags__item"><a href="/tag/drupal-commerce" hreflang="en">Drupal Commerce</a></li> <li class="field--tags__item"><a href="/tag/drupal-development" hreflang="en">Drupal Development</a></li> <li class="field--tags__item"><a href="/tag/update" hreflang="en">Update</a></li> <li class="field--tags__item"><a href="/tag/video" hreflang="en">Video</a></li> </ul> </div> Sun, 21 Apr 2019 20:38:04 +0000 useradmin 63 at https://michalak.world Exchange Rates API https://michalak.world/article/exchange-rates-api <span>Exchange Rates API</span> <span><span>useradmin</span></span> <span>Fri, 04/12/2019 - 06:34</span> <div class="primary-image field field--name-field-image field--type-image field--label-above"> <div class="field__label">Image</div> <div class="field__item"> <img loading="lazy" src="/sites/default/files/2019-04/exchange-rates.jpg" width="5000" height="5263" alt="Drupal Currency Conversion" title="Drupal Currency Conversion" /> </div> </div> <div class="text-content clearfix field field--name-body field--type-text-with-summary field--label-above"> <div class="field__label">Body</div> <div class="field__item"><p>Wow, what a great little API.  <a href="https://exchangeratesapi.io/">Exchange Rates API</a> is a free API that helps with currency conversion rates.  </p> <p>All that needs to be sent is the base currency and the currency that you want to convert.  Then the conversion rate is returned.  Making it simple. </p> <p><strong>Example</strong></p> <p>GET Request: <code>https://api.exchangeratesapi.io/latest?base=USD&amp;symbols=GBP </code></p> <p>Result: <code>{"base":"EUR","rates":{"USD":1.1264,"GBP":0.86168},"date":"2019-04-11"}</code></p> <p>Another option is to send a base currency and to get the currency rates of multiple currencies.  This can be done in one API call.  </p> <p><strong>Example</strong></p> <p>GET Request: <code>https://api.exchangeratesapi.io/latest?base=EUR&amp;symbols=USD,GBP,HKD</code></p> <p>Result: <code>{"base":"EUR","rates":{"USD":1.1264,"HKD":8.8354,"GBP":0.86168},"date":"2019-04-11"}</code></p> <p><strong>Resources</strong></p> <ul><li><a href="https://exchangeratesapi.io/">https://exchangeratesapi.io/</a></li> </ul></div> </div> <section data-drupal-selector="comments" class="comments"> <h2 class="comments__title">Comments</h2> <div class="add-comment"> <div class="add-comment__form"> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=58&amp;2=comment&amp;3=comment" token="YFQQDBKS2PyubkQPCREyclnmHp8FTNyXnnoO4zlXT8Q"></drupal-render-placeholder> </div> </div> </section> <div class="field field--name-field-tags field--type-entity-reference field--label-above field--tags"> <h3 class="field__label field--tags__label">Tags</h3> <ul class="links field__items field--tags__items"> <li class="field--tags__item"><div> <h2><a href="/tag/api"> <div class="field field--name-name field--type-string field--label-hidden field__item">API</div> </a></h2> <div class="text-content clearfix field field--name-description field--type-text-long field--label-hidden field__item"><p>API</p></div> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-7"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 7</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-8"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal 8</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-commerce"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Commerce</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/drupal-development"> <div class="field field--name-name field--type-string field--label-hidden field__item">Drupal Development</div> </a></h2> </div> </li> <li class="field--tags__item"><div> <h2><a href="/tag/integration"> <div class="field field--name-name field--type-string field--label-hidden field__item">Integration</div> </a></h2> </div> </li> </ul> </div> Fri, 12 Apr 2019 11:34:16 +0000 useradmin 58 at https://michalak.world