MCPcopy Create free account
hub / github.com/audacity/audacity / WriteAccessFields

Function WriteAccessFields

libraries/lib-cloud-audiocom/OAuthService.cpp:76–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void WriteAccessFields(rapidjson::Document& document, std::string_view grantType, std::string_view scope)
77{
78 using namespace rapidjson;
79
80 document.AddMember(
81 "grant_type", StringRef(grantType.data(), grantType.size()),
82 document.GetAllocator());
83
84 document.AddMember(
85 "scope", StringRef(scope.data(), scope.size()), document.GetAllocator());
86}
87
88void WriteCommonFields(
89 rapidjson::Document& document, std::string_view grantType, std::string_view scope)

Callers 1

WriteCommonFieldsFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected