Diff
Differences From Artifact [3b96ae1b61]:
- File channels/dirble.py — part of check-in [e5d39589b8] at 2014-08-12 18:45:38 on branch trunk — Allow use of custom Dirble API key. (user: mario, size: 3778) [annotate] [blame] [check-ins using]
To Artifact [a30ec4e248]:
- File channels/dirble.py — part of check-in [bac0507543] at 2015-02-06 18:11:47 on branch trunk — Print API error, "Invalid API key". (Dirble plugin probably going to get removed...) (user: mario, size: 3885) [annotate] [blame] [check-ins using]
118 119 120 121 122 123 124 125 126 127 | 118 119 120 121 122 123 124 125 126 127 128 129 130 | + + + | def api(self, *params): method = params[0] try: j = http.get((self.base % (method, conf.dirble_api_key or self.cid)) + "/".join([str(e) for e in params[1:]])) r = json.loads(j); except: r = [] if len(r) and "errormsg" in r[0]: __print__(dbg.ERR, r[0]["errormsg"]) r = [] return r |