<commit_before># RTop

Quick start to use Taobao Open API.

## Installation

Add this line to your application's Gemfile:

    gem 'RTop'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install RTop

## Usage

### Use in irb
1. check rtop version in terminal:

    > rtop -v

2. generate rtop configuration file:

    > rtop generate
   
3. go into irb, and type:

    > rtop = RTop::RTop.new() # by default will use taobao.yml in current folder or ./config folder
    > item = rtop.get_item(1500022659003) # default to sandbox mode, so this item is from http://mini.tbsandbox.com/buyer/items_result.htm
    > puts item["title"]

### Use with rails app
Simply put configuration file to yourApp/config/ folder, and start to use:

    rtop = RTop::RTop.new()
    rtop...

### Sample of the configuration file

		defaults: &DEFAULTS
		  app_key: test
		  secret_key: test
		
		development:
		  <<: *DEFAULTS
		  env: development # will use sandbox api url
		
		test:
		  <<: *DEFAULTS
		  env: test # will use sandbox api url
		
		production:
		  <<: *DEFAULTS
		  env: production # will use production api url
		  app_key: 1122334455
		  secret_key: 23424242424234234242423423

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
<commit_msg>readme update<commit_after># RTop

Quick start to use Taobao Open API.

## Installation

Add this line to your application's Gemfile:

    gem 'RTop'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install RTop

## Usage

### Use in irb
1. check rtop version in terminal:

    > rtop -v

2. generate rtop configuration file:

    > rtop generate
   
3. go into irb, and type:

```ruby
    > rtop = RTop::RTop.new() # by default will use taobao.yml in current folder or ./config folder
    > item = rtop.get_item(1500022659003) # default to sandbox mode, so this item is from http://mini.tbsandbox.com/buyer/items_result.htm
    > puts item["title"]
```

### Use with rails app
Simply put configuration file to yourApp/config/ folder, and start to use:

    rtop = RTop::RTop.new()
    rtop...

### Sample of the configuration file

		defaults: &DEFAULTS
		  app_key: test
		  secret_key: test
		
		development:
		  <<: *DEFAULTS
		  env: development # will use sandbox api url
		
		test:
		  <<: *DEFAULTS
		  env: test # will use sandbox api url
		
		production:
		  <<: *DEFAULTS
		  env: production # will use production api url
		  app_key: 1122334455
		  secret_key: 23424242424234234242423423

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

{'fraction_non_alphanumeric': 0.09396433470507544, 'fraction_numerical': 0.03909465020576132, 'mean_word_length': 3.0401662049861495, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1933027', 'n_tokens_mistral': 1095, 'n_tokens_neox': 932, 'n_words': 362}