VSServices.HelperMethod
1.0.0.1
dotnet add package VSServices.HelperMethod --version 1.0.0.1
NuGet\Install-Package VSServices.HelperMethod -Version 1.0.0.1
<PackageReference Include="VSServices.HelperMethod" Version="1.0.0.1" />
paket add VSServices.HelperMethod --version 1.0.0.1
#r "nuget: VSServices.HelperMethod, 1.0.0.1"
// Install VSServices.HelperMethod as a Cake Addin #addin nuget:?package=VSServices.HelperMethod&version=1.0.0.1 // Install VSServices.HelperMethod as a Cake Tool #tool nuget:?package=VSServices.HelperMethod&version=1.0.0.1
VSServices Helper Library Documentation body { font-family: Arial, sans-serif; line-height: 1.6; margin: 0; padding: 20px; background-color: #f4f4f4; } h1, h2, h3 { color: #333; } h1 { border-bottom: 2px solid #333; padding-bottom: 10px; } pre { background-color: #eee; padding: 10px; border-radius: 5px; overflow-x: auto; } code { background-color: #f4f4f4; padding: 2px 4px; border-radius: 4px; }
VSServices Helper Library
The VSServices Helper Library provides a set of utility classes designed to simplify interactions with the Blogger API, National Stock Exchange (NSE), and predefined URL endpoints. These classes enable easy fetching, processing, and managing of data from various sources, including Blogger, NSE, and web URLs.
Features
- BloggerHelper: Interact with the Blogger API to retrieve, insert, and update blog posts.
- NSEHelper: Fetch and process data from NSE URLs in XML, JSON, and PDF formats.
- NSEUrl: Provides static URL endpoints for NSE data queries and a predefined list of common stock symbols.
Classes
1. BloggerHelper
A static class to interact with the Blogger API. It provides methods to retrieve, insert, and update blog posts.
Example Usage
// Retrieve posts
string postsContent = BloggerHelper.GetPosts();
// Insert a new post
string insertResponse = BloggerHelper.InsertPost("Post Title", "Post Content", "Post Label");
// Update an existing post
string updateResponse = BloggerHelper.UpdatePost("postId", "New Post Title", "Updated Post Content", "Updated Post Label");
2. NSEHelper
A static class to fetch and process data from NSE URLs. It handles XML, JSON, and PDF data formats and includes caching capabilities.
Example Usage
// Fetch data from a URL
string urlData = NSEHelper.GetURLData("your_url");
// Fetch XML data
var xmlData = NSEHelper.GetURLDataXML<YourXmlType>("your_xml_url");
// Fetch JSON data
var jsonData = NSEHelper.GetURLDataJson<YourJsonType>("your_json_url");
// Fetch PDF data
string pdfText = NSEHelper.GetURLPdfData("your_pdf_url");
3. NSEUrl
A static class containing various URL endpoints for accessing NSE data and predefined lists of stock names.
Example Usage
// Use predefined URL endpoints
string marketDataUrl = NSEUrl.MarketDataPreOpen;
string resultXmlUrl = string.Format(NSEUrl.ResultXMLURLList, "2023-01-01", "2023-12-31", "RELIANCE");
// Access predefined stock symbols
string[] stockSymbols = NSEUrl.slogsNames;
Configuration
The library relies on certain configuration settings, typically stored in the App.config
or Web.config
file:
<appSettings>
<add key="BlogId" value="your_blog_id"/>
<add key="IsBloggerDummy" value="false"/>
<add key="IsCache" value="true"/>
<add key="CacheFolder" value="path/to/cache/folder"/>
<add key="CacheExtension" value=".json,.xml"/>
</appSettings>
Dependencies
iTextSharp
: For handling PDF documents.log4net
: For logging purposes.Newtonsoft.Json
: For JSON deserialization.System.Configuration
: For accessing configuration settings.
Installation
Include the required NuGet packages in your project:
Install-Package iTextSharp
Install-Package log4net
Install-Package Newtonsoft.Json
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Google.Apis.Blogger.v3 (>= 1.68.0.2925)
- iTextSharp (>= 5.5.13.4)
- log4net (>= 2.0.17)
- Newtonsoft.Json (>= 13.0.3)
- System.Configuration.ConfigurationManager (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.