
Security News
Nx npm Packages Compromised in Supply Chain Attack Leveraging AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Essa biblioteca é um conjunto de classes para acessar as informações do Granatum através da API.
Todas as classes são herdadas do ActiveResouce::Base. Veja a documentação do ActiveResouce para mais informações.
gem install granatum-api
require 'rubygems'
require 'granatum-api'
Granatum::Api::Base.access_token = ENV['granatum_token']
# criar uma categoria
@category = Granatum::Api::Category.create({:description => 'Retirada de Lucro'})
# listar todos os lançamentos
@transactions = Granatum::Api::Transaction.find(:all, params: { conta_id: 46839})
@transactions.each do |transaction|
puts "ID: #{transaction.id}\n";
puts "Descricao: #{transaction.descricao}\n";
puts "Vencimento: #{transaction.data_vencimento}\n";
puts "Valor: #{transaction.valor}\n";
puts "=================================\n";
end
Veja um exemplo no arquivo example.rb
Esse código é livre para ser usado dentro dos termos da licença MIT license.
Comentários são bem-vindos. Envie seu feedback através do issue tracker do GitHub
Agradecimento especial para o CobreGratis-Ruby que serviu como referência para este código.
Sanderson Santana trabalhando na Eita
FAQs
Unknown package
We found that granatum-api 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.