Example #1
0
        /// Documentation https://developers.google.com/firebasedynamiclinks/v1/reference/shortLinks/create
        /// Generation Note: This does not always build corectly.  Google needs to standardise things I need to figuer out which ones are wrong.
        /// </summary>
        /// <param name="service">Authenticated FirebaseDynamicLinks service.</param>  
        /// <param name="body">A valid FirebaseDynamicLinks v1 body.</param>
        /// <returns>CreateShortDynamicLinkResponseResponse</returns>
        public static CreateShortDynamicLinkResponse Create(FirebaseDynamicLinksService service, CreateShortDynamicLinkRequest body)
        {
            try
            {
                // Initial validation.
                if (service == null)
                    throw new ArgumentNullException("service");
                if (body == null)
                    throw new ArgumentNullException("body");

                // Make the request.
                return service.ShortLinks.Create(body).Execute();
            }
            catch (Exception ex)
            {
                throw new Exception("Request ShortLinks.Create failed.", ex);
            }
        }
 public DynamicLinksService(FirebaseDynamicLinksService fireBaseDynamicLinksService, IHttpContextAccessor contextAccessor)
 {
     _fireBaseDynamicLinksService = fireBaseDynamicLinksService;
     _contextAccessor             = contextAccessor;
 }