<commit_before># BaiduPushClient

Baidu Push SDK

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'baidu_push_client'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install baidu_push_client

## Usage
Read spec for usage and fixtures for request/response examples

```ruby

options = {
  server_host:  'channel.api.duapp.com',
  common_path:  '/rest/2.0/channel',
  ak:           '<KEY>',
  sk:           '<KEY>'
}

client = BaiduPushClient::Client.new(options)

client.push_all
```

## Contributing

1. Fork it ( https://github.com/[my-github-username]/baidu_push_client/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request<commit_msg>show example<commit_after># BaiduPushClient

Baidu Push SDK

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'baidu_push_client'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install baidu_push_client

## Usage
Read spec for usage and fixtures for request/response examples

```ruby

options = {
  server_host:  'channel.api.duapp.com',
  common_path:  '/rest/2.0/channel',
  ak:           '<KEY>',
  sk:           '<KEY>'
}

messages = {
  aps: {
    alert:"Message From Baidu Push",
    sound:"",
    badge:0
    },
}
client = BaiduPushClient::Client.new(options)

client.push_all messages: messages.to_json
```

## Contributing

1. Fork it ( https://github.com/[my-github-username]/baidu_push_client/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
{'fraction_non_alphanumeric': 0.12418300653594772, 'fraction_numerical': 0.008169934640522876, 'mean_word_length': 3.547029702970297, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1933966', 'n_tokens_mistral': 649, 'n_tokens_neox': 614, 'n_words': 190}