GooglePlayInstant/Editor/QuickDeploy/GcpClient.cs
/// <summary>
/// Sends an HTTP request to GCP to verify whether or not configured bucket name exist. Invokes action
/// postResponseAction on the WWW instance holding the request when a response to the request is received.
/// </summary>
/// <param name="postResponseAction">An action to be invoked on the WWW instance holding the HTTP request
/// when the response is available.</param>
Sends an HTTP request to GCP to verify whether or not configured bucket name exist. Invokes action
postResponseAction on the WWW instance holding the request when a response to the request is received.
Sends an HTTP request to GCP to verify whether or not configured bucket name exist . Invokes action postResponseAction on the WWW instance holding the request when a response to the request is received .
private static void CheckBucketExistence(Action<WWW> postResponseAction)
        {
            var bucketInfoUrl =
                string.Format("https://www.googleapis.com/storage/v1/b/{0}",
                    QuickDeployWindow.Config.CloudStorageBucketName);
            var request =
                HttpRequestHelper.SendHttpGetRequest(bucketInfoUrl, null, GetDictionaryWithAuthorizationHeader());
            WwwRequestInProgress.TrackProgress(request, "Checking whether bucket exists.", postResponseAction);
        }
private static void CheckBucketExistence ( Action < WWW > postResponseAction ) { var bucketInfoUrl = string . Format ( " " , QuickDeployWindow . Config . CloudStorageBucketName ) ; var request = HttpRequestHelper . SendHttpGetRequest ( bucketInfoUrl , null , GetDictionaryWithAuthorizationHeader ( ) ) ; WwwRequestInProgress . TrackProgress ( request , " " , postResponseAction ) ; }
Sends an HTTP request to GCP to verify whether or not configured bucket name exist.
Sends an HTTP request to GCP to verify whether or not configured bucket name exist .
// see https://cloud.google.com/storage/docs/getting-bucket-information on getting bucket information.
postResponseAction
Action<WWW>
An action to be invoked on the WWW instance holding the HTTP request
when the response is available.
An action to be invoked on the WWW instance holding the HTTP request when the response is available .