Skip to content

Commit

Permalink
deploy: 05dacb7
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Dec 23, 2023
1 parent 7cd20d7 commit d59ec17
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,15 @@
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#programmatic-use-search-object-by-custom-field-value-rest-api" class="md-nav__link">
<span class="md-ellipsis">
Programmatic use - Search Object by Custom Field Value - REST API
</span>
</a>

</li>

<li class="md-nav__item">
Expand Down Expand Up @@ -484,6 +493,15 @@
</span>
</a>

</li>

<li class="md-nav__item">
<a href="#programmatic-use-search-object-by-custom-field-value-rest-api" class="md-nav__link">
<span class="md-ellipsis">
Programmatic use - Search Object by Custom Field Value - REST API
</span>
</a>

</li>

<li class="md-nav__item">
Expand Down Expand Up @@ -723,6 +741,26 @@ <h2 id="programmatic-use-search-object-by-custom-field-value">Programmatic use -
if __name__ == &quot;__main__&quot;:
asyncio.run(async_main())
</code></pre>
<h2 id="programmatic-use-search-object-by-custom-field-value-rest-api">Programmatic use - Search Object by Custom Field Value - REST API</h2>
<pre><code class="language-python">import asyncio

from netsuite import NetSuite, Config, TokenAuth

config = Config(
account=&quot;12345&quot;,
auth=TokenAuth(consumer_key=&quot;abc&quot;, consumer_secret=&quot;123&quot;, token_id=&quot;xyz&quot;, token_secret=&quot;456&quot;),
)

ns = NetSuite(config)

async def async_main() -&gt; dict:
customer_keyword = 'Test Customer'
query_params = {'q':f'Name CONTAIN &quot;{customer_keyword}&quot;'}
rest_api_results = await ns.rest_api.get(&quot;/record/v1/customer&quot;, params=query_params)

if __name__ == &quot;__main__&quot;:
asyncio.run(async_main())
</code></pre>
<h2 id="cli">CLI</h2>
<h3 id="configuration">Configuration</h3>
<p>To use the command line utilities you must add a config file with a section in this format:</p>
Expand Down
Loading

0 comments on commit d59ec17

Please sign in to comment.