MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / create_org

Method create_org

Algorithmia/client.py:100–111  ·  view source on GitHub ↗
(self, requestString)

Source from the content-addressed store, hash-verified

98 return json.loads(response.content.decode("utf-8"))
99
100 def create_org(self, requestString):
101 url = "/v1/organizations"
102 type = requestString["type_id"]
103
104 id, error = self.convert_type_id(type)
105 requestString["type_id"] = id
106
107 response = self.postJsonHelper(url=url, input_object=requestString)
108 if (error != "") and (response["error"] is not None):
109 response["error"]["message"] = error
110
111 return response
112
113 def get_org(self, org_name):
114 url = "/v1/organizations/" + org_name

Callers 1

test_create_orgMethod · 0.80

Calls 2

convert_type_idMethod · 0.95
postJsonHelperMethod · 0.95

Tested by 1

test_create_orgMethod · 0.64