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.
A Ruby library that provides access to the Microsoft Dynamics365 Business Central REST API.
Currently targets v1.0 of the API as documented here:
https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v1.0/
With bundler, add the following to your Gemfile
gem 'business_central'
First, you need to create an instance of the BusinessCentral::Client, which is then passed to one of the API query objects.
The gem currently only supports BasicAuthentication. The API supports both BasicAuth and OAuth2.
Best practice is to store all client login details in environment variables. The gem will automatically look for the following ENV variables, but these can be over-ridden in the options Hash:
BC_TENANT, BC_COMPANY_ID, BC_USERNAME, BC_PASSWORD, BC_HOST
client = BusinessCentral::Client.new({
api_tenant: ENV[BC_TENANT],
api_username: ENV[BC_USERNAME],
api_password: ENV[BC_PASSWORD],
api_version: ENV[BC_API_VERSION],
api_path: ENV[BC_API_PATH],
api_company_id: ENV[BC_COMPANY_ID],
api_host: ENV[BC_HOST]
})
# These options are used to build the URL to access the Business Central API as
# follows:
"https://#{@api_host}#{@api_version}/#{@api_tenant}#{@api_path}/companies(#{@api_company_id})"
"https://api.businesscentral.dynamics.com/v1.0/cronus.com/api/v1.0/companies(UUID)"
# Returns an array of Customers
customers = BusinessCentral::Customer.new(client).get()
# Returns an individual Customer
customer = BusinessCentral::Customer.new(client).get("CUSTOMER_ID")
# POST a new Customer
data = {
displayName: "Company Name",
number: "10000",
type: "Company",
...
}
customer = BusinessCentral::Customer.new(client).post(data)
# Displays "Company Name"
puts customer.displayName
FAQs
Unknown package
We found that business_central 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.