how to get available emails quota in sendgrid through marketing email api in Ruby on Rails
问题 I use gem 'sendgrid_toolkit', '>= 1.1.1'. I want to get my daily email sending limit. Thanks in advance. 回答1: Unfortunately, there's no way to get the number of email remaining on your plan with the SendGrid API at present (as a standard SendGrid User). You can, however, use the General Statistics endpoint and it's parameter requests . You may then subtract requests from the number of emails you have in your plan. Doing so would look something like: total_credits = 100000 statistics =