<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Virginie</title>
    <description>The latest articles on DEV Community by Virginie (@vikelle).</description>
    <link>https://dev.to/vikelle</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F840560%2F57035a5c-9cf8-4fb9-b6d1-d05f0c858321.jpeg</url>
      <title>DEV Community: Virginie</title>
      <link>https://dev.to/vikelle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vikelle"/>
    <language>en</language>
    <item>
      <title>API Pexels (API keys + color search)</title>
      <dc:creator>Virginie</dc:creator>
      <pubDate>Fri, 01 Apr 2022 14:01:56 +0000</pubDate>
      <link>https://dev.to/vikelle/api-pexels-api-keys-color-search-6gn</link>
      <guid>https://dev.to/vikelle/api-pexels-api-keys-color-search-6gn</guid>
      <description>&lt;p&gt;We are 3 learners in dev school, for a data visualization project, realized in JavaScript. We used the Pexels API, but we encountered problems when we followed its documentation.&lt;br&gt;
This one is rather light and did not work for us.&lt;br&gt;
Here's how we solved our hang-ups:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Authorization to insert the API key 
Pexels documentation:
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { createClient } from 'pexels';
const client = createClient('YOUR_API_KEY');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Our solution:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;headers: { 
Authorization: "YOUR_API_KEY",
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Search for a photo by color: remove the # in front of the hexadecimal code (in lower case).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Marine, Audrey &amp;amp; Virginie&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
