Skip to content

Commit d24dfe5

Browse files
authored
Merge pull request #877 from microsoftgraph/fix/api-version-should-use-beta
fix: should use beta api version
2 parents d7b3072 + 5e24943 commit d24dfe5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

msgraph_beta/graph_request_adapter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@
77

88
from ._version import VERSION
99

10+
apiVersion=APIVersion.beta
11+
1012
options = {
1113
UrlReplaceHandlerOption.get_key(): UrlReplaceHandlerOption(
1214
enabled = True,
1315
replacement_pairs = {"/users/me-token-to-replace": "/me"}
1416
),
1517
GraphTelemetryHandlerOption.get_key(): GraphTelemetryHandlerOption(
16-
api_version=APIVersion.beta,
18+
api_version=apiVersion,
1719
sdk_version=VERSION)
1820
}
1921

2022
class GraphRequestAdapter(BaseGraphRequestAdapter):
2123
def __init__(self, auth_provider: AuthenticationProvider,
2224
client: Optional[httpx.AsyncClient] = None) -> None:
2325
if client is None:
24-
client = GraphClientFactory.create_with_default_middleware(options=options)
26+
client = GraphClientFactory.create_with_default_middleware(api_version=apiVersion, options=options)
2527
super().__init__(auth_provider, http_client=client)

0 commit comments

Comments
 (0)