code: func (s *Adaptor) AnalogRead(pin string) (val int, err error) {
  	params := url.Values{
  		"params":       {pin},
  		"access_token": {s.AccessToken},
  	}
  
  	url := fmt.Sprintf("%v/analogread", s.deviceURL())
  
  	resp, err := s.request("POST", url, params)
  	if err == nil {
  		val = int(resp["return_value"].(float64))
  		return
  	}
  
  	return 0, err
  }
docs: // AnalogRead reads analog ping value using Particle cloud api