iT邦幫忙

0

請問有人對ebay API 熟悉嗎??

小弟專案遇到個問題那就是俺開發的ERP要與EBAY API做結合,看了一下ebay是使用SAX技術(XML API),對API真的不熟悉,希望大大們可以幫俺引導到API大門~~!Orz
使用語言PHP
framework CodeIgniter

在此先謝謝各位前輩~~!哭

看更多先前的討論...收起先前的討論...
如果是我
就直接
1.複製
2.貼上
3.放課

eBay 官方教學文件
官方範例原始程式碼下載
謝謝海棉大大讚
俺也想 不過俺還是想順便了解一下內容~~!落寞
手邊有N多ebay API資料 都開始整理還有翻譯~~!汗
只是不知道從何開始Orz
看俺老闆可能是要俺把 ebay API吃透 Orz
既是如此
不必多言
敬備薄酒
祝君順風
醉
那俺可以放心的去了~~!驚
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

4
Albert
iT邦高手 1 級 ‧ 2012-10-15 14:59:37
最佳解答

chingfeng提到:
ebay

大師哪一段你來不及研究......

/**
*
* @author Suzanne Ahmed suzanne.ahmed@ebay.com
*
*/

public class CallJsdk {

public static void main(String[] args) throws MalformedURIException, RemoteException {

// Read properties file to load developer credentials
Properties keys = new Properties();
try {
keys.load(new FileInputStream("keys.properties"));
} catch (IOException e) {
System.out.println(e);
}

// set credentials in ApiAccount
ApiAccount account = new ApiAccount();
account.setDeveloper( keys.getProperty("devId") );
account.setApplication( keys.getProperty("appId") );
account.setCertificate( keys.getProperty("certId") );

// set credentials in ApiCredential
ApiCredential credential = new ApiCredential();
credential.setApiAccount( account );
credential.seteBayToken( keys.getProperty("token") );

// add ApiCredential to ApiContext
ApiContext context = new ApiContext();
context.setApiCredential(credential);

// set eBay server URL to call
context.setApiServerUrl( "https://api.sandbox.ebay.com/wsapi" ); // sandbox

// set timeout in milliseconds - 3 minutes
context.setTimeout(180000);

// set wsdl version number
context.setWSDLVersion("423");

// turn on logging to standard out
ApiLogging logging = new ApiLogging();
logging.setEnableLogging(true);
logging.setLogSOAPMessages(true);
logging.setLogExceptions(true);
context.setApiLogging(logging);

俺不是大師臉紅 俺才到業界3個月多臉紅 都是自己摸索或者善心大德教導俺~~!讚
感謝提供 俺先來研究一下~~!謝謝
資料整理太多 不知哪些是重點~~!搖頭

我要發表回答

立即登入回答