![]() This example updates the price of the specified hotels. Batch processing does not support change sets. The request may contain a maximum of 500 items. Headers.Add(HttpRequestHeader.Authorization, "Bearer " + tokens.AccessToken) ![]() Tokens = GetOauthTokens(storedRefreshToken) Consider using the Bing Ads SDK to get the tokens. TODO: Add the calls to the OAuth code that you use to get the access and Private static string BatchCallHost = "Host: " + Host + CRLF + CRLF Private static string HotelTemplate = "Customers( = uri template Private static string BatchTemplate = "$batch" Private static string BaseUri = " + Host + "/Travel/V1/" Private static CodeGrantOauth tokens = null Private static string storedRefreshToken = "" // or set to null to force credential refresh The client ID and secret that you were given when you Using // Add reference required for Content.OAuth For a simple example that shows how to get an OAuth access and refresh token in C#, see Call CodeGrantflow example. For options in getting the tokens, see Getting Started. The example does not include calls to get the OAuth access and refresh tokens. The following example shows how to create a batch request to update multiple hotels.įor details about the elements used in this example, see the reference section.įor additional information, see Batch processing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |