コード例 #1
0
ファイル: trelloclient.py プロジェクト: gEndelf/py-trello
    def list_organizations(self):
        """
        Returns all organizations for your Trello user

        :return: a list of Python objects representing the Trello organizations.
        Each organization has the following noteworthy attributes:
            - id: the organization's identifier
            - name: Name of the organization
            - desc: Description of the organization (optional - may be missing from the
                    returned JSON)
            - closed: Boolean representing whether this organization is closed or not
            - url: URL to the organization
        """
        json_obj = self.fetch_json('members/me/organizations')
        return [Organization.from_json(self, obj) for obj in json_obj]
コード例 #2
0
ファイル: trelloclient.py プロジェクト: gEndelf/py-trello
    def get_organization(self, organization_id):
        obj = self.fetch_json('/organizations/' + organization_id)

        return Organization.from_json(self, obj)