This project is a python wrapper to interface with Sagitta webservices. It was written hastily but has proven it's worth over and over again.
Just download or clone this project then run
python setup.py install
The Sagitta class takes 7 parameters to initalize. In the example below logins.py looks something like this:
# logins.py
sagitta = dict(
account='example',
username='jsmith',
password='SmithRocks!',
accessCode='',
serverPool='serverpool1',
onlineCode='',
wsServer='server02'
)
import logins
from sagitta import Sagitta
# create the Sagitta object by passing in login creds. see logins.py
s = Sagitta(**logins.sagitta)
response = s.call('rolodexStartsWith', 'smith')
print(response)
"""
(startsWithInfoMap){
TotalHits = 1
TotalReturned = 1
startsWithArray =
(ArrayOfStartsWithArray){
startsWithArray[] =
(startsWithArray){
ID = 234550
ClientCd = "SMITHJOHN"
ClientName = "JOHN SMITH"
Addr1 = "221 B BAKER ST."
City = "Memphis"
StateProvCd = "TN"
PostalCode = "37204"
Producer1Cd = "PJW"
Servicer1Cd = "ASD"
Archived = None
ContactMethod = "555 555-5555"
Note = None
SIC1Cd = None
SourceCd = None
},
}
}
"""
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Nothing to see here yet folks