#!/usr/bin/env python
from dynamics import DynamicsCrmSettings


url = raw_input('Url: ')
username = raw_input('Username: '******'Password: ')

dyn = DynamicsCrmSettings(
    url=url,
    username=username,
    password=password,
    is_crm_online=False,
)

print dyn.make_whoami_request()
Example #2
0
#!/usr/bin/env python
from dynamics import DynamicsCrmSettings

url = raw_input('Url: ')
username = raw_input('Username: '******'Password: ')

dyn = DynamicsCrmSettings(
    url=url,
    username=username,
    password=password,
    is_crm_online=False,
)

print dyn.make_whoami_request()
#!/usr/bin/env python
from dynamics import DynamicsCrmSettings


url = raw_input('Url: ')
username = raw_input('Username: '******'Password: ')

dyn = DynamicsCrmSettings(
    url=url,
    username=username,
    password=password,
    is_crm_online=True,
)

users = dyn.get_users()
print len(users)
#!/usr/bin/env python
from dynamics import DynamicsCrmSettings

url = raw_input('Url: ')
username = raw_input('Username: '******'Password: ')

dyn = DynamicsCrmSettings(
    url=url,
    username=username,
    password=password,
    is_crm_online=True,
)

users = dyn.get_users()
print(len(users))
#!/usr/bin/env python
from dynamics import DynamicsCrmSettings


url = raw_input('Url: ')
username = raw_input('Username: '******'Password: ')

dyn = DynamicsCrmSettings(
    url=url,
    username=username,
    password=password,
    is_crm_online=False,
)

resp = dyn.make_whoami_request()
print resp.status_code
print resp.content