Exemplo n.º 1
0
        private SubmissionFile Convert(string fileName, byte[] fileContent)
        {
            SubmissionFile file = new SubmissionFile(fileName);

            file.Content.AddRange(fileContent);

            return(file);
        }
Exemplo n.º 2
0
        // Call: /Archives/edgar/data/<CIK>/<Submission Access Number>/<File Name>
        public SubmissionFile ArchivesEdgarDataCIKSubmissionFile(string cik, string accessNumber, string fileName)
        {
            AvoidBlocking();

            string Command = "/Archives/edgar/data/{0}/{1}/{2}";

            SubmissionFile submission = null;

            using (var client = new JsonServiceClient(BaseURL))
            {
                string request = string.Format(Command, cik, accessNumber, fileName);

                byte[] fileContent = client.Get <byte[]>(request);

                submission = Convert(fileName, fileContent);
            }

            return(submission);
        }