A. B.
11/13/2024, 1:14 PM- name: tap-ms-graph
variant: slalom-consulting
pip_url: git+<https://github.com/Slalom-Consulting/tap-ms-graph.git>
example config:
- name: tap-ms-graph
config:
tenant: tenant
client_id: client
client_secret: secret
stream_config:
testsharepoint:
parameters: "sites/{site-id}/lists/{list-id}/items/{item-id}/driveItem/workbook/worksheets/Sheet1"
My goal is to pretty much to transform it to my target sql loader that I have confirmed working with another tap. Can anyone point me to any guide since the github readme is not very helpful. Thanks in advance 😄Andy Carter
11/13/2024, 1:16 PMA. B.
11/13/2024, 1:18 PMA. B.
11/13/2024, 1:20 PMstream_config:
testsharepoint:
parameters: "sites/{site-id}/lists/{list-id}/items/{item-id}/driveItem/workbook/worksheets/Sheet1"
I am confident there is no issue with the authorization but rather the url i am using for the parametersA. B.
11/13/2024, 1:35 PM"""Stream type classes for tap-ms-graph."""
from __future__ import annotations
from tap_ms_graph.client import MSGraphChildStream, MSGraphStream
class GroupsStream(MSGraphStream):
name = "groups"
path = "/groups"
primary_keys = ["id"]
odata_context = "groups"
child_context = {"id": "group_id"}
class GroupMembersStream(MSGraphChildStream):
parent_stream_type = GroupsStream
name = "groupMembers"
path = "/groups/{group_id}/members"
primary_keys = ["group_id", "id"]
odata_context = "directoryObjects"
odata_type = "microsoft.graph.user"
# TODO: find a way to make this automatic
parent_context_schema = {
"group_id": {"type": "string"},
}
class SubscribedSkusStream(MSGraphStream):
name = "subscribedSkus"
path = "/subscribedSkus"
primary_keys = ["id"]
odata_context = "subscribedSkus"
class UsersStream(MSGraphStream):
name = "users"
path = "/users"
primary_keys = ["id"]
odata_context = "users"
i cant seem to figure out why its asking for these anywaysA. B.
11/13/2024, 1:36 PMAndy Carter
11/13/2024, 1:37 PMAndy Carter
11/13/2024, 1:37 PMA. B.
11/13/2024, 1:40 PM