For all the information of Seller we have to use Trading API's of ebay.
Here i am going to fetch seller's item with the help of ebay_client gem.
Here i am going to fetch seller's item with the help of ebay_client gem.
EbayClient
Simple, lightweight eBay Trading API Client.
Installation
Rails
Gemfile
:gem 'ebay_client', '~> 0.2.0'
config/ebay_client.yml
:development: &sandbox
api_keys:
- token: '<YOUR SANDBOX AUTHENTICATION TOKEN>'
devid: '<YOUR SANDBOX DEV ID>'
appid: '<YOUR SANDBOX APP ID>'
certid: '<YOUR SANDBOX CERT ID>'
test:
<<: *sandbox
production:
api_keys:
- token: '<YOUR LIVE AUTHENTICATION TOKEN>'
devid: '<YOUR LIVE DEV ID>'
appid: '<YOUR LIVE APP ID>'
certid: '<YOUR LIVE CERT ID>'
You can check it by -
e.g.rails console
:EbayClient.api.get_ebay_official_time! # => {:timestamp=>Fri, 22 Nov 2013 12:31:02 +0000}
Now you can get information from below methods -
EbayClient.api.get_access_token EbayClient.api.get_constant EbayClient.api.get_primary_key EbayClient.api.get_access_token_info EbayClient.api.get_encoding EbayClient.api.get_print EbayClient.api.get_all EbayClient.api.get_errors EbayClient.api.get_proxies EbayClient.api.get_all_gem_names EbayClient.api.get_fields EbayClient.api.get_proxy EbayClient.api.get_all_gem_names_and_versions EbayClient.api.get_first_row EbayClient.api.get_proxy_from_env EbayClient.api.get_all_versions EbayClient.api.get_first_value EbayClient.api.get_question EbayClient.api.get_and_set EbayClient.api.get_key_string EbayClient.api.get_queue EbayClient.api.get_app_access_token EbayClient.api.get_label EbayClient.api.get_relative_path EbayClient.api.get_app_access_token_info EbayClient.api.get_labels EbayClient.api.get_response EbayClient.api.get_arguments_from EbayClient.api.get_length16 EbayClient.api.get_rr EbayClient.api.get_attribute EbayClient.api.get_name EbayClient.api.get_screen_size EbayClient.api.get_best_compatible EbayClient.api.get_object EbayClient.api.get_string EbayClient.api.get_best_encoding EbayClient.api.get_objects EbayClient.api.get_string_list EbayClient.api.get_byte EbayClient.api.get_one_gem_name EbayClient.api.get_time EbayClient.api.get_bytes EbayClient.api.get_one_optional_argument EbayClient.api.get_token_from_server EbayClient.api.get_callbacks EbayClient.api.get_or_default EbayClient.api.get_unpack EbayClient.api.get_cert_files EbayClient.api.get_page EbayClient.api.get_user_info_from_cookie EbayClient.api.get_class EbayClient.api.get_page_access_token EbayClient.api.get_user_info_from_cookies EbayClient.api.get_comments_for_urls EbayClient.api.get_parameters EbayClient.api.get_user_picture_data EbayClient.api.get_connection EbayClient.api.get_picture EbayClient.api.get_value EbayClient.api.get_connections EbayClient.api.get_picture_data
In some of above method you may get error of -
Error - The time range has exceeded.
ex-
EbayClient.api.get_seller_listmay through a exception. In this case you have to pass that params in argument.
ex - EbayClient.api.get_seller_list(StartTimeFrom: '2016-07-01T06:38:48.420Z', StartTimeTo: '2016-08-11T06:38:48.420Z')
No comments:
Post a Comment