Retrieve the subscribed tags :return:
(self)
| 115 | return json.loads(r.text) |
| 116 | |
| 117 | def get_subscription(self): |
| 118 | """ |
| 119 | Retrieve the subscribed tags |
| 120 | :return: |
| 121 | """ |
| 122 | r = requests.post("%s/api/%s/subscription" % (self.base_url, self.api_version), |
| 123 | data={ |
| 124 | "apikey": self.api_key, |
| 125 | }, |
| 126 | proxies=self.proxies, |
| 127 | headers=self.headers) |
| 128 | return json.loads(r.text) |
| 129 | |
| 130 | def get_rule_info(self, rulename): |
| 131 | """ |
no outgoing calls