https://github.com/andrewmcodes/consolidated_screening_list
Ruby client for interfacing with the Consolidated Screening List (CSL)
https://github.com/andrewmcodes/consolidated_screening_list
Last synced: 11 months ago
JSON representation
Ruby client for interfacing with the Consolidated Screening List (CSL)
- Host: GitHub
- URL: https://github.com/andrewmcodes/consolidated_screening_list
- Owner: andrewmcodes
- License: mit
- Created: 2020-02-05T22:29:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-19T22:31:56.000Z (over 4 years ago)
- Last Synced: 2025-06-16T22:41:30.401Z (12 months ago)
- Language: Ruby
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# ConsolidatedScreeningList
[][gem]
[][codeclimate]
[][coverage]
[][codeclimate]
[][inchpages]
[][projectstatus]



[gem]: http://badge.fury.io/rb/consolidated_screening_list
[travis]: http://travis-ci.org/andrewmcodes/consolidated_screening_list
[codeclimate]: https://codeclimate.com/github/andrewmcodes/consolidated_screening_list/maintainability
[coverage]: https://coveralls.io/github/andrewmcodes/consolidated_screening_list
[inchpages]: http://inch-ci.org/github/andrewmcodes/consolidated_screening_list
[projectstatus]: https://www.repostatus.org/#active
A Ruby client for [Trade.gov's Consolidated Screening List](https://developer.trade.gov/consolidated-screening-list.html)
## Attribution
This gem was originally forked from [benbalter/import_export](https://github.com/benbalter/import_export).
## Installation
Adding to a gem:
```ruby
# my-cool-gem.gemspec
Gem::Specification.new do |spec|
# ...
spec.add_dependency "consolidated_screening_list", "~> 0.0.2"
# ...
end
```
Or adding to your project:
```ruby
# Gemfile
gem "consolidated_screening_list", "~> 0.0.2"
```
### Supported Ruby versions
- Ruby (MRI) >= 2.3.0
## Usage
:warning: These are incomplete
```sh
client = ImportExport::Client.new :api_key => "12345"
client.search :q => "smith"
=> [
#,
#
]
client.search :name => "smith", :fuzzy_name => true
=> [
#,
#,
#,
#,
...
]
```
### Available parameters
- `q`
- `sources`
- `countries` (defaults to all countries)
- `address`
- `name`
- `fuzzy_name` (true or false)
- `type`
- `size` (number of results per page, defaults to 100)
- `offset` (defaults to 0)
For more information, see [the Consolidated Screening List API docs](https://developer.trade.gov/consolidated-screening-list.html).
### Command line usage
```sh
consolidated_screening_list [NAME]
```
## Contributing
Bug reports and pull requests are welcome on GitHub at [https://github.com/andrewmcodes/consolidated_screening_list](https://github.com/andrewmcodes/consolidated_screening_list).
### Commit message
This project will be following [Coventional Commits v1.0.0](https://www.conventionalcommits.org/en/v1.0.0/) moving forward.
The commit message should be structured as follows:
```sh
[optional scope]:
[optional body]
[optional footer(s)]
```
Valid types:
- build
- ci
- chore
- docs
- feat
- fix
- perf
- refactor
- revert
- style
- test
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).