import requests
import json
+import warnings
from urllib import urlencode
`headers` a dictionary of headers to use with the request
"""
-
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
resp = session.get(self._get_url(session, uri),
headers=headers,
`files` a dictionary of file names containing file data to POST to the server
"""
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
data = self._utf8_urlencode(data)
`files` a dictionary of file names containing file data to POST to the server
"""
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
data = json.dumps(data)
"""
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
# data = self._utf8_urlencode(data)
data = json.dumps(data)
"""
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
data = self._utf8_urlencode(data)
# data = json.dumps(data)
"""
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
args = "?%s" % urlencode(data) if data else ''
resp = session.delete("%s%s" % (self._get_url(session, uri), args),