Skip to main content

Notifications

Power Automate - Connector Development
Unanswered

Twitter V2 API

(0) ShareShare
ReportReport
Posted on by 2

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?

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics