ディスカッション

NetSuiteの保存検索やレポートをマスターするための究極のガイドである分析センターを使用して、データの力を最大限に活用しましょう。複雑さを単純化し、組織の真の可能性を解き放ちます。今すぐ分析センターに参加して、新たな高みを目指しましょう!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Update: Narrative Insights has been restored and is now available.

Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.

Pythonでトークンベースの認証を使用しRESTletを呼び出す

適用

製品:  NetSuite 2022.1



シナリオ

RESTletのトークンベース認証を使用し、PythonでHTTP POSTリクエストを送信する必要がある場合があります。



解決策

以下のサンプルコードをPythonで使用し、OAuth 1.0認証でPOSTリクエストを使用し、RESTletを呼び出すことができます。

 
import oauth2 as oauth 
import json 
import requests 
import time 
 
url = "https://tstdrv1234567.restlets.api.netsuite.com/app/site/hosting/restlet.nl?script=36&deploy=1" 
token = oauth.Token(key="e7f918e44e5e30349b43c7d81dc91ceff04ea62693487dff8626b8f50cxxxxx", 
                    secret="239a21f5fef5269b68bd5aa7b715526563b6e76ae4f470e862243b32de8xxxxx") 
consumer = oauth.Consumer(key="5c262aabf3effe27e457c54076c5c9f53ababd6bad7109973985a2f1cd5xxxxx", 
                          secret="6c65d77c13dd959dbed3f94b5204084f71c9f9a204c27acc4ee993cf2fexxxxx"
タグ付けされた:

ようこそ!

サインイン

完全な詳細を表示するには、サインインしてください。

登録

アカウントがありませんか?ここをクリックして始めましょう!

リーダーボード

コミュニティの達人

第2四半期 (4月~6月 2026)

今週のリーダー

今月のリーダー

歴代リーダー