Skip to content

Instantly share code, notes, and snippets.

@meirwah
Last active July 23, 2016 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meirwah/55d07d180c6d552202c5d057dfc783f5 to your computer and use it in GitHub Desktop.
Save meirwah/55d07d180c6d552202c5d057dfc783f5 to your computer and use it in GitHub Desktop.
func (c *Client) GetThreatIndicators(resourceType, text, startTime, endTime string,
limit int, extraParams map[string]string) (*ThreatDescriptorResults, string,
error) {
var result = &ThreatDescriptorResults{}
resultAsJSON, err := c.query(apiVersion, "threat_descriptors", startTime, endTime,
resourceType, text, limit, extraParams, result)
if err != nil {
return nil, "", err
}
return result, resultAsJSON, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment