コード例 #1
0
ファイル: ApiBookmark.py プロジェクト: abars/illustbook
	def get(self):
		#日本語対応
		SetUtf8.set()
		if(ApiObject.check_api_capacity(self)):
			return
		dic=ApiBookmark.get_core(self)
		ApiObject.write_json_core(self,dic)
コード例 #2
0
ファイル: ApiPerpetuation.py プロジェクト: abars/illustbook
    def post(self):
        # 日本語対応
        SetUtf8.set()
        if ApiObject.check_api_capacity(self):
            return

            # パラメータ取得
        method = ""
        if self.request.get("method"):
            method = self.request.get("method")

            # 返り値
        dic = {"status": "failed", "message": "methodが見つかりません"}

        # ユーザクラス
        if method == "putData":
            dic = ApiPerpetuation.put_data(self)

        ApiObject.write_json_core(self, dic)
コード例 #3
0
	def get(self):
		SetUtf8.set()
		if(ApiObject.check_api_capacity(self)):
			return
		dic=ApiFeed.get_core(self)
		ApiObject.write_json_core(self,dic)