how to DeclineTradeOffer via Steam Web API? - c#

I know you have to make a POST request, but I have no idea how to. I have searched the web but found nothing about this. Thanks in advance.

Steam API docs available here: https://steamcommunity.com/dev
In particular DeclineTradeOffer method: https://developer.valvesoftware.com/wiki/Steam_Web_API/IEconService#DeclineTradeOffer_.28v1.29
E.g.
http://api.steampowered.com/IEconService/DeclineTradeOffer/ including the tradeofferid in the POST data.

Related

How to get a developer key for ViaGogo API

Long shot, but I'd like to fiddle with ViaGogo API (C# library more precisely). ViaGogo has a well documented public API, documentation is avaliable here.
Problem is, you need to authenticated as it usually happens with this kind of APIs: usually, you find a section of the website, maybe in your profile section, where you can obtain keys, secrets and so on (this happens for example on Facebook or Amazon).
As for ViaGogo, I only found a link that points to a Google Form: this form asks for info about advertising and affiliation on a complete different level of what I need, I won't publish anything read via API. Furthermore, there's no field to leave an e-mail address.
Their C# library seems pretty popular as far as I can tell from downloads from NuGet; I wonder how all these thousands of devs succesfully called that API.
Has anyone succesfully obtained authentication info from ViaGogo?
According to note in registration form, you have to wait for 30 days for their reply.
For more help you can contact them on following contacts:
E-mail: affiliate#viagogo.com
Telephone: +442075532777
Or
http://www.viagogo.com/in/help
There doesn't seem to be any way around this registration according to their website and the api itself -- an appID and password is required. You may try your luck emailing them at Affiliate.Team#viagogo.com -- see this issue on github where the possibility of getting an account via email is discussed: https://github.com/viagogo/developer.viagogo.net/issues/24

Consume web service using post in c#

Currently I have less information about this, but I will update soon with more details.
I have been provided with a web page which provides user name & password option to access a url & return a token value.
The form contains that url in action & the method used is POST.
I have tried general HttpWebRequest methods to access the url, but have been unsuccessful so far. It gives error "cannot connect to remote server"
The url is like
www.somesite.com\method.php\level1\method1\xml
The url confuses me as other links have some extension at the end(I am relatively new to this web service)
I have been told this webservice has been consumed in mobile.
Can someone please guide me as to how to access a web service in c# using POST method?
I apologise for the lack of detailed information
First try to understand how the webservice works.
You can simply create a simple c# rest web service. To return json data , you will need to specify the return data format on specific operation in the web service. To use mysql for database, you can search for mysql connector for c# on google. You can find libraries to use in your code. Hope it helps !
http://www.codeproject.com/Articles/201901/CREATE-RESTful-WCF-Service-API-Using-POST-Step-By
I was able to access by providing proxy details.

Not able to get page_story_adds_unique insight from facebook api

I am facing one issue,
i am calling page insight api. https://graph.facebook.com/293428824150389/insights?access_token=XXX
Am able to get data but some data are not coming
like page_story_adds_unique,page_friends_of_fans, etc
(https://graph.facebook.com/293428824150389/insights/page_story_adds_unique)
I have also given read_insights,manage_pages permission to our token.
Kindly please help me out as soon as possible.
Just investigated the same problem. Looks like this metric was removed by Facebook:
https://developers.facebook.com/docs/apps/migrations/pages-api-changes-2014-07-02

Tumblr oAuth in .NET or C# get Blog posts

I'm trying simply to list a secured blog post from tumblr via .NET or C# there is a few non resolved posts and some examples how to post but not get.
Did anyone has some working code for it?
I've tried this:
http://www.codeproject.com/Tips/578418/Integrate-Tumblr-into-Csharp-NET-Website
http://dotnetopenauth.net/
Thanks
Why are you trying to get a secured blog post?
The documentation here is quite straightforward for getting a list of blogs for a certain user and all you need is the ApiKey so you don't need to OAuth at all. It is a GET request like so:
api.tumblr.com/v2/blog/{base-hostname}/posts[/type]?api_key={key}&[optional-params=]
You'll need to try this to see if your secured post comes back.

i want to fetch facebook wall messages through c#

I’m able to post on wall, but I need to fetch Facebook wall messages through C#
==Update==
Now I’m getting wall messages, but now I want the messages with date.
You need the Graph API.
And to make a request to get the wall posts you need a extended permission on the authentication.
Facebook developer kit is your way to go...
Have you studied the FB API already or are you starting from scratch?
You can use Stream.Get to access wall posts, try reading the wiki:
http://wiki.developers.facebook.com/index.php/Stream.get
(You must have permission to access the users page of course)
I think there are many ways to do this, here is one example:
Make sure you have the permission "read_stream".
Then read all streams to get the messages on the wall;
var streams = API.Stream.Get(new List<long> { }, null, null, null);
streams.posts.stream_post.ForEach(post => Console.WriteLine(post.message));
'API' comes from your masterpage that has been inherited by Facebook.Web.CanvasIFrameMasterPage.
Responding to an old question, but i recently wrote a blog post on the same, i think it might help others who land to this question while Google search, read the post here (its using a custom built Facebook Connector)
click here to read
I want to do the same. Facebook API is changing and now it only returns few of the post even if you put LIMIT and UNTIL/SINCE parameters, so you have to change to FQL.
With FQL you can read stream table and get the posts made by the user and the post made by others in the walls's user.

Categories

Resources