This is a simple example of usage of Grafana sdk for importing dashboards from a bunch of JSON files (current dir used). This example uses SetRawDashboard() and doesn't unmarshal input JSONs.
You are can export dashboards with backup-dashboards utitity. NOTE: old dashboards with same names will be silently overrided!
import-dashboards http://grafana.host:3000 api-key-string-here
You need get API key with Admin rights from your Grafana!