简体   繁体   English

如何在iOS中集成Netsuite

[英]How to integrate Netsuite in ios

I am using RESTlet script which is given in Netsuite help center and follow same procedure as describe by them. 我正在使用Netsuite帮助中心提供的RESTlet脚本,并按照他们描述的相同步骤进行操作。 I have login credentials and also able to upload JS file to Netsuite File cabinet but I don't know how to pass GET or POST method for Netsuite.Please provide me sample code for this to create GET and POST method in JS and how to call them. 我有登录凭据,也可以将JS文件上传到Netsuite文件柜中,但是我不知道如何通过Netsuite的GET或POST方法,请为此提供示例代码以在JS中创建GET和POST方法以及如何调用他们。 Can anyone help me out to solve out this problem. 谁能帮我解决这个问题。 Thanks in advance 提前致谢

Currently the restlets are not accessable via client side JS scripting. 当前,restlets无法通过客户端JS脚本访问。 We've spent many hours on this with no ability to connect. 我们已经花了许多时间,无法连接。 You will have to use a server-side script to accomplish this or an externally available suitelet. 您将必须使用服务器端脚本来完成此操作或使用外部可用的套件。

I would like to ad NETSUITE sucks as bad as Magento in terms of community support. 我想广告NETSUITE在社区支持方面和Magento一样糟糕。 There seem to be few NetSuite experts who share their ideas online and zilch useful code to get a beginner started. 似乎很少有NetSuite专家可以在线共享他们的想法,并整理有用的代码来入门。

I have a similar problem looking to post data from a website form to a restlet or suitelet and a complete DIY with working code is nowhere to be found. 我在将数据从网站表单发布到Restlet或Suitelet时遇到类似的问题,却找不到带有工作代码的完整DIY。 What gives with this community? 这个社区带来了什么? The company is pathetic in providing answers. 该公司提供答案很可悲。 They just point you to the user manual and say "good luck"! 他们只是指向您使用手册并说“祝您好运”!

I've done a bunch of large scale NetSuite integration projects and I would recommend NOT using NetSuite's RESTlets as an API to NetSuite. 我已经完成了许多大型的NetSuite集成项目,建议不要使用NetSuite的RESTlet作为NetSuite的API。

The best method I've found to integrate with NetSuite is to use their SOAP API using the netsuite and netsuite_rails ruby gems. 我发现与NetSuite集成的最佳方法是通过netsuitenetsuite_rails红宝石gem使用其SOAP API。 Create a rails/sinatra app that sits in between your iOS app and NetSuite and handle all of the NetSuite complexity in the Rails/Sinatra application instead of in a Suitelet or your iOS application. 创建一个位于iOS应用程序和NetSuite之间的rails / sinatra应用程序,并在Rails / Sinatra应用程序而不是Suitelet或iOS应用程序中处理所有NetSuite复杂性。

The development tools for developing Suitelets are very poor and it'll end up taking longer to develop, debug, and maintain your NetSuite integration via Suitelets than creating a separate application that acts as a simplified interface to NetSuite (it'll also allow you to write unit tests for your business logic fairly easily). 用于开发Suitelets的开发工具非常差,通过Suitelets开发,调试和维护NetSuite集成要比创建一个单独的应用程序作为NetSuite的简化界面要花费更长的时间(它还使您能够相当容易地为您的业务逻辑编写单元测试)。

You need to have knowledge on Suitescript API. 您需要了解Suitescript API。 From there you can build your own REST using Netsuite Restlets (No built-in restful service, you have to create it yourself). 从那里,您可以使用Netsuite Restlets构建自己的REST(没有内置的Restful服务,您必须自己创建它)。 All you need is the URL from the created Restlet so you can consume it in the any application, as long as the credentials needed are set in the header correctly. 您只需要创建的Restlet中的URL,以便可以在任何应用程序中使用它,只要在标题中正确设置了所需的凭据即可。

Yes, I have done this. 是的,我已经做到了。 I have user restlets API of netsuite which are described in netsuite help section. 我有netsuite的用户restlets API,这在netsuite帮助部分中有介绍。 I have made some some javascript file and upload them to netsuite server and it works great for me. 我已经制作了一些JavaScript文件,并将它们上传到netsuite服务器,对我来说非常有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM