<p>For FeedMe under Craft 2, you are likely going to need to extend the base feed types to create your own feed type that has custom logic, such as authentication. Sadly, the data types documentation under Craft 2 was always TBC, however this plugin can demonstrate how you can create your own feed types</p>
<p><a href="https://github.com/surprisehighway/craft-feedmehelper" rel="nofollow noreferrer">https://github.com/surprisehighway/craft-feedmehelper</a></p>
<p>You essentially need to hook into the registerFeedMeDataTypes() function to register a feed type which is then selectable as a feed in the FeedMe feeds menu.</p>

CC BY-SA 4.0
2022-04-16T15:03:17.923Z
2022-04-16T15:03:17.923Z
James White
<p>I'm using the FeedMe plugin for Craft 2 and I would like to run multiple feeds each with different cUrl options  but there is no documentation on how to do that with the Craft 2 plugin.</p>
<p>Craft 3 Docs: <a href="https://docs.craftcms.com/feed-me/v4/get-started/configuration.html" rel="nofollow noreferrer">https://docs.craftcms.com/feed-me/v4/get-started/configuration.html</a></p>
<pre><code>feedOptions' =&gt; [
            '1' =&gt; [
                'feedUrl' =&gt; 'https://specialurl.io/feed.json',
                'requestOptions' =&gt; [],
            ]
        ],
</code></pre>
<p>Craft 2 Docs: <a href="https://github.com/engram-design/feed-me/blob/craft-2-docs/docs/get-started/configuration.md" rel="nofollow noreferrer">https://github.com/engram-design/feed-me/blob/craft-2-docs/docs/get-started/configuration.md</a></p>
<pre><code>&lt;?php

return array(
    '*' =&gt; array(
        'curlOptions' =&gt; array(
            // Example
            // CURLOPT_PROXY =&gt; 'username:password',
        ),
        'checkExistingFieldData' =&gt; false,
        'skipUpdateFieldHandle' =&gt; 'skipFeedMeUpdate',
        'backupLimit' =&gt; 100,
    ),
);
</code></pre>

<plugin-feedme>
Craft 2 - Feed Me unique cUrl Options with Multiple feeds
# Craft 2 - Feed Me unique cUrl Options with Multiple feeds

(Asked by: username_0 on 2022-03-23)

I'm using the FeedMe plugin for Craft 2 and I would like to run multiple feeds each with different cUrl options  but there is no documentation on how to do that with the Craft 2 plugin.
Craft 3 Docs: https://docs.craftcms.com/feed-me/v4/get-started/configuration.html
feedOptions' => [
            '1' => [
                'feedUrl' => 'https://specialurl.io/feed.json',
                'requestOptions' => [],
            ]
        ],

Craft 2 Docs: https://github.com/engram-design/feed-me/blob/craft-2-docs/docs/get-started/configuration.md
 array(
        'curlOptions' => array(
            // Example
            // CURLOPT_PROXY => 'username:password',
        ),
        'checkExistingFieldData' => false,
        'skipUpdateFieldHandle' => 'skipFeedMeUpdate',
        'backupLimit' => 100,
    ),
);

**Tags:** plugin-feedme

---

## 1 answers

### Answer by username_1 on 2022-04-16. Score: 1

For FeedMe under Craft 2, you are likely going to need to extend the base feed types to create your own feed type that has custom logic, such as authentication. Sadly, the data types documentation under Craft 2 was always TBC, however this plugin can demonstrate how you can create your own feed types

<https://github.com/surprisehighway/craft-feedmehelper>

You essentially need to hook into the registerFeedMeDataTypes() function to register a feed type which is then selectable as a feed in the FeedMe feeds menu.


---

