bullhorn.com rest api客户端
bh_oauth的Python项目详细描述
依赖项:
- requests-http面向人类
快速示例:
auth = dict( client = "Bullhorn OAuth Client ID", secret = 'Bullhorn OAuth Client Secret', usr = "Bullhorn Username", pwd = "Bullhorn Password") bhr = BHRest(**auth) # If in the sandbox environment - update URLs bhr._auth_url = "https://auth9.bullhornstaffing.com/oauth" bhr._rest_url = "https://rest9.bullhornstaffing.com/rest-services" print bhr.access_token print bhr.find(query="+12345678")
功能:
- 如果访问令牌已过期,则自动刷新rest_token/url。
- 给定包含搜索项的字符串,搜索以下实体类型:
- 客户联系人
- 工单
- 候选人
- 客户公司
- Lead(如果Lead和Opportunities已启用=true)
- 机会(如果leads和opportunities enabled=true)
- 要搜索电话号码,请使用“+”开始查询,并附加最后8位数字。