Example #1
0
    def request(self, data=None, **kwargs):
        if data:
            req = self.rf.post("/", data, **kwargs)
        else:
            req = self.rf.get("/", **kwargs)

        return newsletter_subscribe(req)
Example #2
0
    def request(self, data=None, **kwargs):
        if data:
            req = self.rf.post('/', data, **kwargs)
        else:
            req = self.rf.get('/', **kwargs)

        return newsletter_subscribe(req)