CMS365.EbaySharp
1.0.1
See the version list below for details.
dotnet add package CMS365.EbaySharp --version 1.0.1
NuGet\Install-Package CMS365.EbaySharp -Version 1.0.1
<PackageReference Include="CMS365.EbaySharp" Version="1.0.1" />
paket add CMS365.EbaySharp --version 1.0.1
#r "nuget: CMS365.EbaySharp, 1.0.1"
// Install CMS365.EbaySharp as a Cake Addin #addin nuget:?package=CMS365.EbaySharp&version=1.0.1 // Install CMS365.EbaySharp as a Cake Tool #tool nuget:?package=CMS365.EbaySharp&version=1.0.1
EbaySharp: A .NET wrapper library for eBay REST API.
EbaySharp is a .NET library that enables you to authenticate and make REST API calls to eBay. It's used for creating listings and managing orders using C# and .NET
Installation
EbaySharp is available on NuGet. Use the package manager console in Visual Studio to install it:
Install-Package CMS365.EbaySharp
API support
EbaySharp version | eBay REST API version | Build versions |
---|---|---|
1 | Taxonomy Taxonomy API v1.0.1 | 0 |
EbaySharp currently supports the following Facebook Graph APIs:
- Getting started
- Access and Security
- Using the EbaySharp
Creating an App
Please visit https://developers.facebook.com/apps and create an app.
Access and Security
Please visit https://developers.facebook.com/tools/explorer/ and generate a user token.
You can adjust permissions based on your needs. This is a short lived token and can be used for Facebook Graph api for user level operations. We will use it to generate a long live user token.
User postman and send a request to the following endpoint and get a long lived user token.
https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&client_id=APP_CLIENT_ID&client_secret=APP_CLIENT_SECRET&fb_exchange_token=YOUR_SHORT_LIVED_USER_TOKEN_HERE
You will get a response like
{
"access_token": "vMF7UXNvRZC6m58zr0tRQJP3MVCZBd6JDhHkyCXjWcfag8hfcmjImn85B2YPZAUYK4eirj9ZA0ZAsp1TocZD",
"token_type": "bearer",
"expires_in": 5182228
}
We will get an access_token which is long lived user token and can be used for Facebook Graph api for user level operations but we have to generate a page token so that we can perform action on a Facebook page.
https://graph.facebook.com/FACEBOOK_PAGE_ID?fields=access_token&access_token=LONG_LIVED_USER_TOKEN
{
"access_token": "EAASZAbmgGb7YBAFWM3uNUKan1ZBTf4rIAQiLzPSNMa7Lm3Ak1R8tNAVwsORl0LZAcPNEURzFgl6",
"id": "111444904022049"
}
We have now got a page token which we will use to perform actions on a Facebook page.
Using the EbaySharp
Initialize the instance with the page token
var facebookController = new EbaySharp.FacebookController("EAASZAbmgGb7YBAFWM3uNUKan1ZBTf4rIAQiLzPSNMa7Lm3Ak1R8tNAVwsORl0LZAcPNEURzFgl6");
Page
Get page details
PageInfo pageInfo = await facebookController.GetPageDetailsAsync("[PAGE_ID]");
Post with multiline text and images
CreateFeedResponse feedWithImages = await facebookController.PostPageFeedAsync("[PAGE_ID]", new EbaySharp.Entities.Page.PageFeedRequestContent()
{
MessageLines = new List<string>() { "I am a test message", "I am on next line", "https://google.com" },
PhotoUrls = new List<string>() { "https://google.com/34f4ea06a374b216cb1c778a0d1810c6_480x.jpg?v=1684836648" }
});
Post with multiline text and a link
CreateFeedResponse feedWithLink = await facebookController.PostPageFeedAsync("[PAGE_ID]",new List<string>()
{
"I am a test message", "I am on next line", "I am a third line", "I am a fourth line"
},
"https://google.com");
Get page albums
var pageAlbums = await facebookController.GetPageAlbumsAsync("[PAGE_ID]", string fields = "");
Get page albums
Returns most recent 25 conversations. List of fields is available at https://developers.facebook.com/tools/explorer/1294599377547190/?method=GET&path=me%2Fconversations
var pageConversations = await facebookController.GetPageConversations("[PAGE_ID]", string fields = "");
General Graph API methods
You can call direct graph API method If there is no mapping available. For example
Get
var info = await facebookController.Get("/[apge_id]?fields=name,about,link,cover");
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
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.1.1 | 96 | 10/21/2024 |
8.1.0 | 123 | 8/3/2024 |
8.0.0.1 | 93 | 7/14/2024 |
8.0.0 | 79 | 7/14/2024 |
6.6.6.1 | 74 | 7/14/2024 |
6.6.6 | 105 | 7/8/2024 |
6.6.5 | 83 | 7/2/2024 |
6.6.4 | 112 | 6/27/2024 |
6.6.3 | 115 | 6/6/2024 |
6.6.2 | 111 | 6/4/2024 |
6.6.1 | 118 | 5/26/2024 |
6.5.1 | 136 | 3/22/2024 |
6.5.0 | 112 | 3/1/2024 |
6.4.0 | 105 | 2/17/2024 |
6.3.0 | 105 | 2/14/2024 |
6.2.1 | 108 | 2/2/2024 |
6.2.0 | 98 | 2/2/2024 |
6.1.0 | 102 | 1/29/2024 |
6.0.1 | 92 | 1/27/2024 |
6.0.0 | 88 | 1/26/2024 |
1.0.10 | 90 | 1/25/2024 |
1.0.9 | 103 | 1/23/2024 |
1.0.8 | 103 | 1/22/2024 |
1.0.7 | 97 | 1/22/2024 |
1.0.6 | 95 | 1/22/2024 |
1.0.5 | 98 | 1/22/2024 |
1.0.4 | 101 | 1/19/2024 |
1.0.3 | 127 | 1/14/2024 |
1.0.2 | 114 | 1/13/2024 |
1.0.1 | 1,355 | 1/13/2024 |