line21c / 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

Json serialisation issues for UrlShortener #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The lib is unable to serialize the URL correctly. The method call below results 
in a parameter-not-set error:

Data.Url response = service.Url.InsertAsObject(new Data.Url() { LongUrl = 
urlToShorten });

Exception:

   Failed to generate object of type[Url] from Json[{
"error": {
 "errors": [
  {
   "domain": "global",
   "reason": "required",
   "message": "Required",
   "locationType": "parameter",
   "location": "resource.longUrl"
  }
 ],
 "code": 400,
 "message": "Required"
}

Original issue reported on code.google.com by mlin...@google.com on 1 Jun 2011 at 7:21

GoogleCodeExporter commented 9 years ago
Fixed as part of #55

Original comment by mlin...@google.com on 8 Jun 2011 at 10:25