![]() When you’re ready to implement a Connect URL in your experience, please contact IFTTT for appropriate supporting assets. The Connect Button is intended to better set user expectations and improve overall conversion rates. When presenting the Connect URL to users, IFTTT recommends utilizing a static image version of our Connect Button that includes “works with IFTTT” language. You can read more about our iOS and Android SDKs here. How to use itĪ Connect URL should be utilized on any platform for which an official SDK is not available. A user connection created with skip_config=true is considered pending and will not fire its triggers or allow you to run it's actions or queries until it's updated using the update a connection endpoint. After the user is redirected back to your app or website, you will be able to use the field options endpoint and the update a connection endpoint to support your UI and allow the user to configure the connection. The redirect_url parameter is required when skip_config=true. Once a user clicks the connect button they will be taken through the usual connection flow however they will not see the connection configuration screen but will be redirected back to your app instead ( redirect_url). Setting this parameter to true will instruct IFTTT to skip the connection configuration screen. You can use the skip_config parameter if you want to use your own connection configuration UI. The provisional code expires after 48 hours, or upon use. "provisional_access_code": "sf9o8usfl-2f3l-f23kj" If this fails, or the code is missing, we will redirect the user through the normal OAuth exchange.Īcquiring a provisional access code using the API v2 endpoint:Ĭontent-Type: application/json charset=utf-8 If present, we will use the provisional code to look up the oauth_code that we saved and attempt to exchange the oauth_code (along with our client id and secret) for an access token. This allows us to guarantee that the code is single-use only and expires after 48 hours. We will grant a provisional_access_code in exchange for an oauth_code for a given user. ![]() You can use the code to pre-authenticate a user to your service by including the below provisional_access_code in the querystring. Note that this parameter is required if skip_config=true is present. You should use a web protocol (https) resource - you can register multiple redirects in case you’re already using an appScheme://app in the Connect SDKs. The redirect_uri must be registered to your service on the IFTTT Platform or omitted. We use the email address to optimize the log-in process when it matches an existing IFTTT account. Instructs IFTTT to skip only the connection configuration page (default: false). This parameter is required when the skip_config parameter is trueĪ provisional_access_code used to pre-authenticate a user to your service. User’s email address, used as a unique to redirect a user to upon completion of authentication. You should see a view with the background color of the service you need to connect: Throughout these docs, we’ll use ?email=me%&redirect_uri=https%3A%2F%%2Fpage&code=sf9o8usfl-2f3l-f23kjĭepending on whether you're a new user, logged out, or logged in, you'll be directed through the flow appropriately. All API responses are formatted as JSON objects, and any requests that include a body should also be formatted as JSON and include a Content-Type: application/json header. Once your service is set up on the platform, you can use the tools on this page to make connections available to anyone who uses your app, website, chatbot, or other client experience.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |