diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-02-04 11:19:18 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-02-04 11:19:18 +0000 |
commit | 17753f0c20d0d8190095c5a3183630b78bf9650c (patch) | |
tree | 92975fb2f7fe22e3e65f8e5df2c478298ead579c /synapse/appservice/api.py | |
parent | Add appservice package and move ApplicationService into it. (diff) | |
download | synapse-17753f0c20d0d8190095c5a3183630b78bf9650c.tar.xz |
Add stub ApplicationServiceApi and glue it with the handler.
Diffstat (limited to 'synapse/appservice/api.py')
-rw-r--r-- | synapse/appservice/api.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/synapse/appservice/api.py b/synapse/appservice/api.py index 803f97ea4f..158aded66e 100644 --- a/synapse/appservice/api.py +++ b/synapse/appservice/api.py @@ -13,3 +13,24 @@ # See the License for the specific language governing permissions and # limitations under the License. + +class ApplicationServiceApi(object): + """This class manages HS -> AS communications, including querying and + pushing. + """ + + def __init__(self, hs): + self.hs_token = "_hs_token_" # TODO extract hs token + + def query_user(self, service, user_id): + pass + + def query_alias(self, service, alias): + pass + + def push_bulk(self, service, events): + pass + + def push(self, service, event): + pass + |