The twitter V2 documentation twitter v2 authentication
You have to build a url, how can I create a custom connector where I can build the url.
trying to pre configure the url and setting them in the oauth field I get this error:
The request failed with client error: '{"Code":"","Message":"PUT https://power-apim-unitedstates-002.management.azure-api.net/subscriptions/ad336f23-5b09-4b00-b5ef-c16decdffe26/resourceGroups/apim-power-unitedstates-002/providers/Microsoft.ApiManagement/service/power-apim-unitedstates-002/apis/twitter-20api-20v2-5f126f993b6150ff79-5faeda9ea8cd732273?import=true&protocols=https&protocols=http&path=apim/twitter-20api-20v2-5f126f993b6150ff79-5faeda9ea8cd732273&api-version=2019-01-01 failed with BadRequest, content={\"error\":{\"code\":\"ValidationError\",\"message\":\"One or more fields contain incorrect values:\",\"details\":[{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'securityDefinitions.oauth2-auth', line 69, position 20.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json).\"}]}}","Target":null,"Details":[],"Innererror":null}'. The correlation Id is 'eaaa0910-199d-462c-8e7d-a8432835c4ac'.
here is the url that generates the error:
https://twitter.com/i/oauth2/authorize?response_type=code&client_id=CID&https://global.consent.azure-apim.net/redirect&scope=tweet.read%20tweet.write%20users.read &state=state&code_challenge=challenge&code_challenge_method=plain
I would like to be able to configure those parameters and have them passed by automate custom connectors. Can I get some assistance with this?
The twitter V2 documentation twitter v2 authentication
You have to build a url, how can I create a custom connector where I can build the url.
trying to pre configure the url and setting them in the oauth field I get this error:
The request failed with client error: '{"Code":"","Message":"PUT https://power-apim-unitedstates-002.management.azure-api.net/subscriptions/ad336f23-5b09-4b00-b5ef-c16decdffe26/resourceGroups/apim-power-unitedstates-002/providers/Microsoft.ApiManagement/service/power-apim-unitedstates-002/apis/twitter-20api-20v2-5f126f993b6150ff79-5faeda9ea8cd732273?import=true&protocols=https&protocols=http&path=apim/twitter-20api-20v2-5f126f993b6150ff79-5faeda9ea8cd732273&api-version=2019-01-01 failed with BadRequest, content={\"error\":{\"code\":\"ValidationError\",\"message\":\"One or more fields contain incorrect values:\",\"details\":[{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): JSON is valid against no schemas from 'oneOf'. Path 'securityDefinitions.oauth2-auth', line 69, position 20.\"},{\"code\":\"ValidationError\",\"target\":\"representation\",\"message\":\"Parsing error(s): The input OpenAPI file is not valid for the OpenAPI specificate https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md (schema https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json).\"}]}}","Target":null,"Details":[],"Innererror":null}'. The correlation Id is 'eaaa0910-199d-462c-8e7d-a8432835c4ac'.
here is the url that generates the error:
https://twitter.com/i/oauth2/authorize?response_type=code&client_id=CID&https://global.consent.azure-apim.net/redirect&scope=tweet.read%20tweet.write%20users.read &state=state&code_challenge=challenge&code_challenge_method=plain
I would like to be able to configure those parameters and have them passed by automate custom connectors. Can I get some assistance with this?