Skip to content

Commit

Permalink
Publish PR 6962: New Source Salesloft (#7274)
Browse files Browse the repository at this point in the history
* Generated connector source code

* Added basic users stream

* Added people stream

* Added cadences and cadence_memberships streams

* Updated unit tests

* Fixed docker build

* Updated connector to use OAuth

* address some checklist items

* review comments

* small fix

* add salesloft into airbyte-config

* correct docs

Co-authored-by: lgomezm <luis@calixa.io>
Co-authored-by: prasrvenkat <pras@calixa.io>
  • Loading branch information
3 people committed Oct 22, 2021
1 parent 115af27 commit ad6223d
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sourceDefinitionId": "41991d12-d4b5-439e-afd0-260a31d4c53f",
"name": "SalesLoft",
"dockerRepository": "airbyte/source-salesloft",
"dockerImageTag": "0.1.0",
"documentationUrl": "https://docs.airbyte.io/integrations/sources/salesloft"
}
Original file line number Diff line number Diff line change
Expand Up @@ -572,3 +572,9 @@
dockerImageTag: 0.1.0
documentationUrl: https://docs.airbyte.io/integrations/sources/lever-onesignal
sourceType: api
- sourceDefinitionId: 41991d12-d4b5-439e-afd0-260a31d4c53f
name: SalesLoft
dockerRepository: airbyte/source-salesloft
dockerImageTag: 0.1.0
documentationUrl: https://docs.airbyte.io/integrations/sources/lever-onesignal
sourceType: api
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-salesloft/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from setuptools import find_packages, setup

MAIN_REQUIREMENTS = [
"airbyte-cdk==0.1.22",
"airbyte-cdk~=0.1.22",
]

TEST_REQUIREMENTS = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ def __init__(
super().__init__(authenticator=authenticator)

def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]:
try:
next_page = response.json()["metadata"]["paging"].get("next_page")
return None if not next_page else {"page": next_page}
except:
raise KeyError("error parsing next_page token")
try:
next_page = response.json()["metadata"]["paging"].get("next_page")
return None if not next_page else {"page": next_page}
except Exception as e:
raise KeyError(f"error parsing next_page token: {e}")

def request_params(
self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_page_token: Mapping[str, Any] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def test_next_page_token_invalid(patch_base_class):
assert isinstance(ex.value, KeyError)



def test_parse_response(patch_base_class):
stream = SalesloftStream(authenticator=MagicMock())
response = MagicMock()
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/sources/salesloft.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ List of available streams:

| Version | Date | Pull Request | Subject |
| :------ | :-------- | :----- | :------ |
| 0.1.0 | 2021-09-08 | [5619](https://github.com/airbytehq/airbyte/pull/6962) | Salesloft Connector |
| 0.1.0 | 2021-10-22 | [6962](https://github.com/airbytehq/airbyte/pull/6962) | Salesloft Connector |

0 comments on commit ad6223d

Please sign in to comment.