<?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: Python SDK HTTP Proxy Setting in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420612#M3364</link>
    <description>&lt;P&gt;Thank you.  That was the solution.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 12:36:53 GMT</pubDate>
    <dc:creator>jpark5591</dc:creator>
    <dc:date>2019-07-18T12:36:53Z</dc:date>
    <item>
      <title>Python SDK HTTP Proxy Setting</title>
      <link>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420609#M3361</link>
      <description>&lt;P&gt;I'm doing some basic testing with the Python meraki-sdk v1.0.2.   The connection to api.meraki.com goes thru an HTTP proxy.  Does anyone in the community know how HTTP proxy is configured in the SDK?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:31:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420609#M3361</guid>
      <dc:creator>jpark5591</dc:creator>
      <dc:date>2019-07-17T15:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK HTTP Proxy Setting</title>
      <link>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420610#M3362</link>
      <description>&lt;P&gt;I don't know about the SDK but I'm using this : &lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;proxy = 'proxyURL'&lt;/P&gt;&lt;P&gt;os.environ['http_proxy'] = proxy&lt;BR /&gt;os.environ['HTTP_PROXY'] = proxy&lt;BR /&gt;os.environ['https_proxy'] = proxy&lt;BR /&gt;os.environ['HTTPS_PROXY'] = proxy&lt;/P&gt;&lt;P&gt;works like a charm. &lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:50:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420610#M3362</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2019-07-17T18:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK HTTP Proxy Setting</title>
      <link>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420611#M3363</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm not sure what you mean by a proxy with the SDK, but I will give you some context.&lt;BR /&gt;&lt;BR /&gt;The API default base URL is &lt;A href="https://api.meraki.com/api/v0" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This path will be redirected to the actual home domain of your Meraki organization. &lt;/P&gt;&lt;P&gt;For example, when I go to &lt;A href="https://api.meraki.com/api/v0/organizations" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api.meraki.com/api/v0/organizations&lt;/A&gt;, this will actually be redirected to&lt;/P&gt;&lt;P&gt;&lt;A href="https://n143.meraki.com/api/v0/organizations" target="_blank" rel="noopener nofollow noreferrer"&gt;https://n143.meraki.com/api/v0/organizations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With the SDK, it will naturally use the default base URL,  but you have the option to override this. I often do this when I want to manually proxy the request through my own API dev server or if I want to skip the redirect because it could cause issues.&lt;BR /&gt;&lt;BR /&gt;To do this, simply update the configuration for the base URL when you initialize the SDK.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;from meraki_sdk.meraki_sdk_client import MerakiSdkClient
from meraki_sdk.exceptions.api_exception import APIException

MerakiSdkClient.config.x_cisco_meraki_api_key = '&amp;lt;API-KEY&amp;gt;'

# Override default Meraki API Base URL
MerakiSdkClient.config.base_uri = "https://n143.meraki.com/api/v0"

client = MerakiSdkClient()

organizations_controller = client.organizations
try:
    result = organizations_controller.get_organizations()
    print(result)
except APIException as e:
    print(e)&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 09:44:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420611#M3363</guid>
      <dc:creator>DexterLabora</dc:creator>
      <dc:date>2019-07-18T09:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK HTTP Proxy Setting</title>
      <link>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420612#M3364</link>
      <description>&lt;P&gt;Thank you.  That was the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 12:36:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/python-sdk-http-proxy-setting/m-p/5420612#M3364</guid>
      <dc:creator>jpark5591</dc:creator>
      <dc:date>2019-07-18T12:36:53Z</dc:date>
    </item>
  </channel>
</rss>

