# -*- coding: utf-8 -*-
# Copyright 2008-2010, Felspar Co Ltd. http://fost.3.felspar.com/
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at
#     http://www.boost.org/LICENSE_1_0.txt
from _appservices import *
import Fost.settings
import appservices
from Fost.internet._internet import ua_request, url
from Fost.json import parse, unparse


fostsettings = Fost.settings.database()


class agent(appservices.service):
    def __init__(self, key, secret, base = None):
        super(agent, self).__init__(key, secret)
        self.base_url = base or \
            url('http://felspar-appservices.appspot.com/')
            #url('http://felspar-appservices-test.appspot.com/')
            #url('http://localhost:6789/')
