karishmal / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Error in Set watermark Request #519

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Getting OAuth Token
2.Applying Watermarks' Body -Invideo Branding
3.Set Watermark Request

What is the expected output? What do you see instead?

What version of the product are you using?Youtube Data API V3
What is your operating system?Windows 7
What is your IDE?VS 2012
What is the .NET framework version?.Net 4.0

Please provide any additional information below.

i am here giving my code for watermark set request but it is giving me 
response: Value cannot be null Parameter name: baseUri

 public async Task setwatermark()
        {

            InvideoBranding ib = new InvideoBranding();
            InvideoTiming it = new InvideoTiming();
            InvideoPosition ip = new InvideoPosition();
            Stream stream = null; 
            it.Type = "offsetFromStart";
            it.OffsetMs = 1000;
            it.DurationMs = 50000;

            ip.Type = "corner";
            ip.CornerPosition = "topRight";

            string filepath = Server.MapPath("~/Images/orderedList0.png");
            ib.TargetChannelId = "UCyAn2aVZWNAugdlckOJKG5A";
         //   ib.ImageUrl = filepath;
            ib.Position = ip;
            ib.Timing = it;

            using (var fileStream = new FileStream(filepath, FileMode.Open))
            {
                stream = (Stream)fileStream;
                var setrequest = youtubeService.Watermarks.Set(ib, "UCyAn2aVZWNAugdlckOJKG5A",stream,"image/*");
                var resp =await setrequest.UploadAsync();

            }
please tell me what  i am doing wrong...

Original issue reported on code.google.com by rajpara....@gmail.com on 11 Dec 2014 at 6:28

GoogleCodeExporter commented 9 years ago
Which Google APIs client version do you use?
I recommend you by the way to open a thread in SO using our 
google-api-dotnet-client tag first (as recommended in the website), and only if 
we will find that there is actually a bug, we will open a thread.

Please update this post with the SO thread, and we will take it from there.
Thanks!

Original comment by pele...@google.com on 11 Dec 2014 at 7:56

GoogleCodeExporter commented 9 years ago
Attaching the fiddler request and response might help as well :)

Original comment by pele...@google.com on 11 Dec 2014 at 7:57

GoogleCodeExporter commented 9 years ago
i have opened a thread on SO with  google-api-dotnet-client tag
and  i am mentioning below  which Google APi i i am using..

i am using 
            IDE       :     VS2012  
            Framework :     4.0
            Google API:     Youtube Data V3
            Authentication: Outh 2.0

for set watermark request it gives  response: Value cannot be null Parameter 
name: baseUri
and for unset watermark it gives --Error 503-backend error..

my unset watermark code is :

var unsetrequest = youtubeService.Watermarks.Unset("UCyAn2aVZWNAugdlckOJKG5A");
        // searchListRequest.Q = txtSearchKeyword.Text;

        var searchListResponse = unsetrequest.Execute();

    }

Original comment by rajpara....@gmail.com on 12 Dec 2014 at 4:56

GoogleCodeExporter commented 9 years ago
my SO thread URL is 
:http://stackoverflow.com/questions/27437067/error-in-set-and-unset-watermark-re
quest-using-youtube-data-api-v3

Original comment by rajpara....@gmail.com on 12 Dec 2014 at 1:28

GoogleCodeExporter commented 9 years ago
is there any update for my issue?

Original comment by rajpara....@gmail.com on 12 Jan 2015 at 5:14