Skip to content

mdezzi/ifsrequest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Requests wrapper for making IFS Cloud requests.

To instantiate the class with client auth:

from ifsrequest import IfsRequest

auth = {'type':'client', 'client_id':'IFS_test', 'client_secret':'verysecretkey', 'realm':'mrdprod'}
ifsrequest = IfsRequest(base_url='https://myifsserver.com', auth=auth)

To instantiate the class with user/pass auth:

from ifsrequest import IfsRequest

auth = {'type':'user','username':'matt','password':'verysecretpass'}
ifsrequest = IfsRequest(base_url='https://myifsserver.com', auth=auth)

Once instantiated, you can call ifsrequest as if you were calling requests with get, post, patch, and delete methods:

r = ifsrequest.get('UserSettings.svc/SingletonUser')
print(r.text)

URL's can be in the following formats:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages