{"action":"created","issue":{"url":"https://api.github.com/repos/HelloFax/hellosign-dotnet-sdk/issues/21","repository_url":"https://api.github.com/repos/HelloFax/hellosign-dotnet-sdk","labels_url":"https://api.github.com/repos/HelloFax/hellosign-dotnet-sdk/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/HelloFax/hellosign-dotnet-sdk/issues/21/comments","events_url":"https://api.github.com/repos/HelloFax/hellosign-dotnet-sdk/issues/21/events","html_url":"https://github.com/HelloFax/hellosign-dotnet-sdk/issues/21","id":160060588,"number":21,"title":"Add Document Model and Documents list to Template Model ","user":{"login":"jhstrateng","id":6186692,"avatar_url":"https://avatars.githubusercontent.com/u/6186692?v=3","gravatar_id":"","url":"https://api.github.com/users/jhstrateng","html_url":"https://github.com/jhstrateng","followers_url":"https://api.github.com/users/jhstrateng/followers","following_url":"https://api.github.com/users/jhstrateng/following{/other_user}","gists_url":"https://api.github.com/users/jhstrateng/gists{/gist_id}","starred_url":"https://api.github.com/users/jhstrateng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhstrateng/subscriptions","organizations_url":"https://api.github.com/users/jhstrateng/orgs","repos_url":"https://api.github.com/users/jhstrateng/repos","events_url":"https://api.github.com/users/jhstrateng/events{/privacy}","received_events_url":"https://api.github.com/users/jhstrateng/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-13T22:39:31Z","updated_at":"2016-06-22T23:01:58Z","closed_at":"2016-06-22T23:01:58Z","body":"The SDK does not include an implementation for the Document Model nor its corresponding Form Fields. Our company is evaluating purchasing a subscription to HelloSign. One of the features we are looking for is the ability to use Form Fields pulled from a Template object, but sent with varying PDFs. Similar to the scenario described on the developer site, Template Walkthroughs, titled, \"Using Files and Form Fields\"\r\n"},"comment":{"url":"https://api.github.com/repos/HelloFax/hellosign-dotnet-sdk/issues/comments/227903048","html_url":"https://github.com/HelloFax/hellosign-dotnet-sdk/issues/21#issuecomment-227903048","issue_url":"https://api.github.com/repos/HelloFax/hellosign-dotnet-sdk/issues/21","id":227903048,"user":{"login":"BHSPitMonkey","id":33672,"avatar_url":"https://avatars.githubusercontent.com/u/33672?v=3","gravatar_id":"","url":"https://api.github.com/users/BHSPitMonkey","html_url":"https://github.com/BHSPitMonkey","followers_url":"https://api.github.com/users/BHSPitMonkey/followers","following_url":"https://api.github.com/users/BHSPitMonkey/following{/other_user}","gists_url":"https://api.github.com/users/BHSPitMonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/BHSPitMonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BHSPitMonkey/subscriptions","organizations_url":"https://api.github.com/users/BHSPitMonkey/orgs","repos_url":"https://api.github.com/users/BHSPitMonkey/repos","events_url":"https://api.github.com/users/BHSPitMonkey/events{/privacy}","received_events_url":"https://api.github.com/users/BHSPitMonkey/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T23:01:58Z","updated_at":"2016-06-22T23:01:58Z","body":"@jhstrateng - I just pushed out a new release (0.5.2.0) to NuGet and our GitHub Releases page. Please reopen this issue if it doesn't meet your needs.\r\n\r\nThe following code should now be usable:\r\n\r\n```csharp\r\nvar templates = client.ListTemplates();\r\nforeach (Template template in templates) {\r\n    foreach (Document doc in template.Documents) {\r\n        Console.WriteLine(\"Doc name: \" + doc.Name);\r\n        foreach (var field in doc.CustomFields) {\r\n            Console.WriteLine(\"CustomField:\");\r\n            Console.WriteLine(\" Name: \" + field.Name);\r\n            Console.WriteLine(\" API ID: \" + field.ApiId);\r\n            Console.WriteLine(\" Required: \" + (field.Required ? \"yes\" : \"no\"));\r\n            Console.WriteLine(\" Type: \" + field.Type);\r\n        }\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"BHSPitMonkey"}}