">moltin</span> <span class="o">=</span> <span class="kt">Moltin</span><span class="p">(</span><span class="nv">withClientID</span><span class="p">:</span> <span class="s">"&lt;your client ID&gt;"</span><span class="p">)</span>

<span class="n">moltin</span><span class="o">.</span><span class="n">product</span><span class="o">.</span><span class="n">all</span> <span class="p">{</span> <span class="n">result</span> <span class="k">in</span>
    <span class="k">switch</span> <span class="n">result</span> <spa