<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Access Denied 403 when trying to create/update contact information in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Access-Denied-403-when-trying-to-create-update-contact/m-p/230190#M9086</link>
    <description>&lt;P&gt;Additional info:&lt;BR /&gt;
This is my code snippet:&lt;BR /&gt;
$url = “&lt;A href="https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/%24email/?hapikey=%24hubspotApiKey" rel="nofollow noopener"&gt;https://api.hubapi.com/contacts/v1/contact/createOrUpdate/email/$email/?hapikey=$hubspotApiKey&lt;/A&gt;”;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    
    $response=curl_exec($ch);
    
    $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    $curl_errors = curl_error($ch);
    
    curl_close($ch);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Nov 2017 08:05:22 GMT</pubDate>
    <dc:creator>DannyBisaerts</dc:creator>
    <dc:date>2017-11-24T08:05:22Z</dc:date>
  </channel>
</rss>

