edfenergy api
1.0.0
Screen Scraper API สำหรับบัญชี EDF Energy Online
ฉันต้องการส่งการอ่านมิเตอร์อย่างเป็นโปรแกรมและฉันเบื่อที่จะรอ API อย่างเป็นทางการ
ขณะนี้ทั้งหมดที่ทำคือตรวจสอบสิทธิ์และส่งคืนการอ่านมิเตอร์ การส่งการอ่านอยู่ถัดไปในรายการของฉัน
เพิ่มบรรทัดนี้ใน Gemfile ของแอปพลิเคชันของคุณ:
gem 'edfenergy-api'
แล้วดำเนินการ:
$ bundle
หรือติดตั้งด้วยตัวเองเป็น:
$ gem install edfenergy-api
require 'edfenergy/api'
api = Edfenergy :: Api . new
api . login ( 'EMAIL ADDRESS' , 'PASSWORD' ) # => true
api . meter_reading # => 12345
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature