I am trying to automate the extraction of data from some Data Extensions within Salesforce Marketing Cloud (formerly Exact Target).Currently, there are queries being run from within the Query Studio (e.g.select distinct CompositeKey as ActivityCompositeKey, Type, BounceCategory from SendLogAnalyticsForExport where Type='EmailSent')How do I do this from within an externally run process (that I will be writing, ideally in C#)?
I have credentials to connect to the marketing cloud apis as well as the AuthN and REST and SOAP URL
AuthURL: https://XXXXXXXXXXX.auth.marketingcloudapis.com/v2/tokenClientId: YYYYYYYYYYYYYYYYClientSecret: ZZZZZZZZZZZZZSoapURL: https://XXXXXXXXXXX.soap.marketingcloudapis.comRestURL: https://XXXXXXXXXXX.rest.marketingcloudapis.comI have looked into the documentation for the "Marketing Cloud Engagement APIs and SDKs" and found the REST API and SOAP API. But there's nothing specifically geared at running a query in the form specified above (i.e. SQL-like query that can be run from within the Query Studio).
The closest thing I saw was the documentation for "Query Data using Query API V1" within the Salesforce "Data Cloud Reference Guide"; however, this also does not seem to be targeted at Marketing Cloud (also, the explanations were rather scant: nothing about the actual endpoints to hit, no info about the authentication method).
In addition, I have looked at the FuelSDK-CSharp library. But, once again, nothing specifically geared at running a SQL-like query against Data Extensions.