Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
yandex_market_api_client
Advanced tools
It's a YandexMarket API wrapper written in Ruby. Will be useful for people having authorization key from Yandex. Provides a simple interface to make API calls to YandexMarket. Not all methods will be supported in the beginnig.
Add this line to your application's Gemfile:
gem 'yandex_market_api_client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install yandex_market_api_client
The structure of the api response will not be provided here in case of large data in it. You can look for it in Yandex docs here.
There are several parameters that can be configured:
Code example:
YandexMarketApiClient.configure do |config|
config.auth_key = "Your Auth Key Here"
config.api_version = "1"
config.default_format = "json"
end
If no version or format options are provided, the default values will be seted.
Default Yandex api_version is 1
Default deafult_format is json
I'll use geo_id = 225 (Russia) by default in all queries, you have to choose what geo_id do you need.
To get a client instance you have to call get_client
method:
client = YandexMarketApiClient.get_client
The api description is provided here. List of optinal and required params provided in the docs on the link upper.
client.categories(geo_id: 225).perform.parse
client.categories(geo_id: 225, page: 1, count: 10, sort: "name").perform.parse
client.category(geo_id: 225, category_id: 1).perform.parse
client.category(geo_id: 225, category_id: 1).perform.parse
client.category_children(geo_id: 225, category_id: 1).perform.parse
client.category_children(geo_id: 225, category_id: 1, page: 1, count: 10, sort: "name", type: "guru").perform.parse
client.category_models(geo_id: 225, category_id: 1).perform.parse
client.category_models(geo_id: 225, category_id: 1, page: 1, count: 10, sort: "name", vendor_id: 1, how: "asc").perform.parse
The api description is provided here. List of optinal and required params provided in the docs on the link upper.
client.regions.perform.parse
client.region(geo_id: 225).perform.parse
client.region_children(geo_id: 225).perform.parse
The api description is provided here. List of options and required params is provided in the docs on the link upper.
client.shop_info(shop_id: 24049).perform.parse
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that yandex_market_api_client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.