Click here to Skip to main content
15,890,506 members
Everything / API

API

API

Great Reads

by Shenwei Liu
A complete sample application using AngularJS, trNgGrid, ngTable, and ASP.NET Web API to access and display data with server-side data filtering, sorting, and paging.
by Bruno Tabbia
Automatic positioning and resizing of explorer windows, without overlapping (for obsessive superusers)
by Mathew Soji
This tip guides through implementing a basic REST based Web API service with multiple GET methods and its consumption using JQuery client
by Sheshnath Kumar
This article will find out a solution to serialize/deserialize object by reference at server and client, also will serialize/deserialize objects having circular references.

Latest Articles

by Fred Song (Melbourne)
A responsive React frontend interacts in real-time with a .NET 8 Minimal API backend to dynamically display and manage state transitions for a simulated traffic light system.
by Dev Leader
Access Google Sheets via C#; Start simple, optimize later!
by Nicolas DESCARTES
How to build a GraphQL API with HotChocolate?
by Pawan Kumar from CodewithPawan.com
Explore the seamless integration of @ngrx/translate with an Angular standalone API in this comprehensive guide, ensuring a smooth translation workflow for your applications.

All Articles

Sort by Updated

API 

7 Aug 2011 by #realJSOP
I got 22 MILLION google results back with the search phrase "develop an asp.net api for your web site". Here's a CodeProject article (the first result):Build truly RESTful API and website using same ASP.NET MVC code[^]
26 Aug 2011 by #realJSOP
Google reveals all:http://www.microsoft.com/express/samples/facebook/[^]
15 Mar 2018 by #realJSOP
You shouldn't be executing external applications from a web site (security concerns). Either move the necessary code from the console app to the web app, or reference the console app assembly in your web app and use the code as is.
1 Apr 2018 by #realJSOP
Find a hex editor, open the file with it, and see if you can determine how it's laid out.Chances are few if any of us play the game, so we don't have an example of the file to do it for you.
13 Apr 2018 by #realJSOP
Deserialize your json collection: Deserialize a Collection[^] After that, write a method that converts your deserialized objects into a datatable, and Bob's your uncle. BTW, if you use the netwtonsoft json.net library (a nuget package), you can deserialize directly to a datatable. DataTable...
3 Apr 2019 by #realJSOP
See if there are associated commandline parameters, config files, or failing that, registry entries that you can change. If there aren't any of those, your only recourse is to get the window handle and programatically, change the settings via the given app's UI (and not only is that ugly, but...
26 Jun 2020 by #realJSOP
attemping to deserialize Jason to a model object will throw an exception if thedesrialization can’t be performed. Why can’t you just put a try/catch block around the deserialization code and let nature take its course?
8 Mar 2021 by #realJSOP
When you say "interface with a database", are you talking about actually accessing the database, via stored procs or queries? If so, that's called a DAL (Data Access Layer). The DAL usually contains methods that simply calls the database.It...
22 Dec 2021 by #realJSOP
Don't do it in .Net - let the database do it. Setup a job that sends the reminders every day at a specific time. Keep in mind that you'll probably need to setup a no-reply email account in order to use an SMTP server. Don't forget to give the...
12 Feb 2015 by /\jmot
See .http://stackoverflow.com/questions/25030498/parse-json-data-string-store-in-array[^]https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh770289.aspx[^]https://blog.udemy.com/c-sharp-json/[^]
25 Apr 2012 by 01.mandar
Hi FriendsI have created a MDI form in that i have 2 forms (treeview form and information form)in 2nd (information form) i have added 2 buttons next and previousminimize, maximize works on all of client form correctly(before any click on 2nd form)Problem:when i click button...
8 Nov 2018 by 1suli0
Two HTTP headers are present, Content-Type:application/json and Accept:application/json My response look like this: "{\r\n \"auth_token\":...
16 Nov 2011 by 204.sharma
Hiii, I need to get status from twitter in an C# console Application.At now time i am trying to do this by using twitterize framework dll.i got this from a site.but i unable to get tweet.i want to search tweet according to three query string.1.if i type #india then it must show all...
19 Dec 2016 by 204.sharma
Hi,I am trying to develop a simple application to print different kind of documents.I am using winspool api. My problem is, document is added in printer queue and its showing status printing. but its not printing. WritePrinter returning true but its not printing. i am stuck in this.any...
6 May 2014 by 233amin
hi every body i want to use system("ping X.X.X.X") but i want to use the answer of this ping in Cstring obj or write this ping in a text box how i can do it?
18 May 2014 by 233amin
i need to find my program path that is running i need own program path
19 May 2014 by 233amin
i use this code in my program to copy current program to other place but it dont work CopyFile(argv[0],L"C:\\Users\\233Amin\\Desktop",1)Last Error code is : ...............................................ERROR_ACCESS_DENIED 5 (0x5) Access is...
16 May 2020 by 44voy44
There are quite a few applications out there, so generally it has been done and it should not be such a big deal since quite a few of these applications repeat the same features/solutions like ewa english app uses a similar suggest a translation...
7 Aug 2017 by 4d.kh4n
I ran in to a similar problem a while back .. after debugging my code i found out that the transaction that i was making was logically wrong.. the subtotal was off be $0.25 and paypal server saw it and refused to process it, and gave me 400 bad request
18 Sep 2014 by 9000605667
How to provide security & authentication for WEB API ?
6 May 2014 by _Asif_
Did you googled? Try below urlHow to parse command line output from c#?[^]For C++ Version Try thisCreateProcess and CreatePipe to execute a process and return output as a string in VC++[^]
12 May 2014 by _Asif_
Have you tried this?C# Connection Example[^]
9 Jul 2013 by _BrijeshSingh
How to use ipviking code in c#.....?I have the API key and when i use these key in my program its through error(400 Bad Request)Can any one help me?my code isWebRequest request = WebRequest.Create("http://beta.ipviking.com/api/&apikey=** REMOVED...
5 Nov 2023 by A Belal
I have a controller named Categories. I have one form or One View for Create And Edit. Create Action works well, but when I click Edit, the NewRow is added in database. The problem is I want to Edit Row without adding new in database. What I...
20 Nov 2023 by A Belal
I get tokenKey from path https://localhost:7107/api/login And when i try to test token and get data from Path https://localhost:7107/api/Values the token work good and data comes well but when i remove token the data continue come and...
29 Nov 2023 by A Belal
i want to do Pagination for View Page named ItemsList data comes well in Console in browser but it doesn't show on screen What I have tried: Array(10) 0 : {itemId: 2, itemName: 'MacBook Pro', salesPrice: 1339.69, purchasePrice: 1205.72,...
18 Dec 2023 by A Belal
in Repository Pattern System.NullReferenceException Delete Method System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=Microsoft.EntityFrameworkCore StackTrace: at...
11 Feb 2019 by A.R Farooqui
I am working on a middle ware API that uses Share point 2013 as back end. Using ListItemCollection.GetByID(id) to update. While updating a date time field with UTC time, the time goes time-5 hours of the time existed in the column , instead of the data I inserted. But when I call...
29 Jul 2012 by Aadarsh Gupta
this is what I tried following.. but no use.. I don't know why..http://msdn.microsoft.com/en-us/library/dd221354.aspx1thing I noticed is they'r using WPF Application template, but I was trying it on Windows Forms Application
10 Jul 2021 by aakar
We are calling a Rest API URL via the HttpWebRequest / HttpWebResponse method using IDs that are already stored in a database table. We am currently using a for each loop to iterate through each of the IDs fetched in a DataTable and then making a...
27 May 2012 by aamir sajjad
How to implement the custom authorization and exception handling attribute in the ASP.NET Web API.
19 Feb 2016 by aarif moh shaikh
Use Localization & Globalization concept of ASP.NET.for example- follow below links ASP.Net Multilingual website: Support and display Multiple Languages (English French) in ASP.Net[^] C# Corner : Error Display[^]Regards,AARIF SHAIKH
17 Jul 2013 by abdulsafran
Hi,I have a linkedin account and there is a group, I need that group members name, email & weblink without doing it manually. Please tell me how to full fill my requirement?
23 Feb 2012 by abey e mathews
Is it possible to integrate google bookmark with web application using ASP.NET and C# ?Is possible then How to integrate..
21 Sep 2012 by abey e mathews
i refer this for creating google analytics chart reportshttp://analytics-api-samples.googlecode.com/svn/trunk/src/reporting/javascript/ez-ga-dash/docs/user-documentation.html[^]i create page view chart and created another chart for visitors.but i need to display both chart in one...
2 Jan 2014 by Abhilash K M
Private Sub browseXLfile_Click(sender As Object, e As EventArgs) Handles browseXLfile.Click Dim ofd As New OpenFileDialog If ofd.ShowDialog() System.Windows.Forms.DialogResult.OK Then Exit Sub Dim nme As String = ofd.FileName Dim safename As String...
12 Oct 2015 by Abhinav Gupta
I am getting the page likes of this link as 1591 using the Facebook API call( Tested directly with facebook api and Apigee console)but when I opened the link then the actual facebook home page is showing likes as...
19 Oct 2015 by Abhinav Gupta
I am trying to get the profiles in Instagram by "search" keywords.I am getting only 50 profiles not more than this and there is no Next Page Token.I wanted to know ,how many profiles we can extract by using free API in Instagram
15 Aug 2012 by Abhinav Moudgil
I have a Html page on which I want to make a call to an external API and display data being fetched from there.For Example: I have a page test.html and there is and Api : http://testwebsite.com/api/namedisplay.NOw this service returns the name and I want to display them on my Html page...
23 Jan 2011 by Abhinav S
This[^] article might help.
7 Aug 2011 by Abhinav S
Have a look at Developing Facebook applications in C# with ASP.NET[^].Nikhil Kothari's weblog[^] has a useful blog as well.You can directly read about the Facebook API on their website.
22 Feb 2014 by Abhinav S
You will need access to their web services.
18 Sep 2015 by Abhinav S
Use a nested grid view. There are many examples of nested grid view -Nested GridView in ASP.NET using C#[^]Nested GridView Example in ASP.Net using C# and VB.Net[^]Walkthrough: Creating a Nested GridView Control[^]
6 Jan 2016 by Abhinav S
Try these links -DotNetTrace.Net: Encrypt and Decrypt URL in MVC 4[^]ASP.NET MVC Value Provider for encrypted query string | dotnetExpertGuide.com[^]
11 Jan 2016 by Abhinav S
Some links -Linkedin JS API Example - JSFiddle[^]Simple example of using the LinkedIn JavaScript SDK to send an invite · GitHub[^]Sign In with LinkedIn | Documentation[^]All these links use Javaxcript to connect to Linkedin.
2 Oct 2019 by Abhinav S
This article provides guidelines that can help build a good service in as little as 10 days.
20 Feb 2012 by Abhineet Ayan Verma
Is there any way or API to get the count of Semaphore? The purpose is to SetEvent if the Semaphore Count is equal to the MaximumCount and no more threads are there to execute.
20 Feb 2012 by Abhineet Ayan Verma
I have done my part of Research and Search and found out that there is nothing to get the exact count of Semaphores. It is designed like this only and no API is released to know the exact number of threads waiting and executing and released cause of Race Condition.
7 Mar 2012 by Abhineet Ayan Verma
Hi All,I am writing a code to implement FTP Client-Server which have the methods for 1. Client Username-Password Authentication.2. Downloading A File.3. Uploading A File.Now the steps in which my code should work is:A. Server keeps in memory the Username-Password Pair.B. Each...
6 Nov 2012 by Abhineet Ayan Verma
I am trying to write some codes for detecting the user-mode hooks. Would you please guide me through the steps and ways to detect hooks. Till now I have tried enumerating all the running processes and enumerating the modules for each of the process. I read somewhere to compare the in-memory...
17 Oct 2015 by Abhishek Burrnwal
How to integrate by DHL shipping in asp.net?
2 Feb 2013 by Abhishek Pant
hi,This may help you a little-EasyHook - The reinvention of Windows API Hooking[^]
6 May 2014 by Abhishek Pant
4 steps to create free SSL certificate for development [^]How to implement SSL in IIS[^]
19 Jan 2013 by Abhishek Sha
Can anyone please give me a gist of how should one develop a browser plugin or a Windows 8 app that recognizes hand gestures from the in built web camera?The tools, the apis, the platform, some rough idea of how I should proceed would be very helpful. Something, like when I wave my hand...
18 Jan 2012 by abhishek.singh.valeteck
Hi Surendra,Please refer to the following URL for ur solution.I am also using it for my application and its really helpful.Getting User Profile Response from Social Sites using oAuth in ASP.NET C#[^]and ofcourse don't forget to get the API Key(ConsumerKey) and Secret...
4 Oct 2012 by Adersh Ram
Hi Folks,I am trying to create a Image processing Application Like morphing two images , images cutting etc.I dont know how to do this task in .Net, Any idea ?There is any Photoshop API for do this task ?Please Help me !Thanks Advance
6 Dec 2013 by ADonda
hi everyone, i am creating a portal in which three roles are there for user like 1 is for teachers, 1 is for students, and the other is for users(normal). i am using html5,jquery,javascript for interface, backbone.js and web api.i wanted to create login service for all users in that when...
14 Jan 2014 by ADonda
I want to secure web api for that i am using nugget package webapitokenauth(bootstrap).So for that i have modified authcontroller as per my needs that is i am authenticating user with sql database and returning userid, username, and role for that user in cookies as token.I check that login...
9 May 2017 by Adriaan Booysen
Adding Seeding Framework towards EntityFrameworkCore that can be wired up in either a dotnet core Web Application or WebAPI
12 Jun 2014 by adriancs
You can't register by using program, so called "bot" in internet world.Only human can register it.There is a captcha system which is designed only readable by human.However, you can try to write a program that can read the captcha image, of course.
13 Jan 2016 by Aescleal
Run, don't walk to your nearest second hand bookshop and/or ebay. Look for "Programming Windows" by Charles Petzold (5th edition) and buy a copy. It'll show you how to write Windows programs in C - it'll take you through how to write applications using the WIN32 API. Don't buy the 6th edition -...
2 May 2013 by aesongi
I tried to start a process in service session ( session 0 : window 2008 server (session 0 isolation)) with user account. then I use LogonUser and createProcessAsUser api.....but, user account('frank') //session id :0 //process name: notepad.exe when interactive service and desktop is...
6 Oct 2014 by Afazal MD 3104209
AngularJS integration with Web API explained with a product list and added new product with get and post method.
27 Dec 2014 by Afzaal Ahmad Zeeshan
You can try using the Newtonsoft.JSON[^] API to deserialize this JSON syntax to an object. That would be converted into an anonymous object, to make sure you get an object that you know how to extract data from. Please create the classes created inside this website,...
25 Jan 2015 by Afzaal Ahmad Zeeshan
Sadly there is no official ASP.NET document or a sample project for downloading the emails from the email server; such as Gmail or Outlook. They just created a helper class WebMail for sending the emails through any SMTP server; including Gmail. Anyways, you can try using these settings from...
8 Jun 2015 by Afzaal Ahmad Zeeshan
Instead of C# or Java, please search for a 3-D modeling tool. Because what you have shown has no feature that needs a back-end script or code (using Java or C#), but it needs a powerful 3-D modeling tool, that can render the graphics and allow you to create different models and apply textures...
30 Aug 2015 by Afzaal Ahmad Zeeshan
ActionBar.TabListener[^] was deprecated in API level 21 and they provided a reason on that documentation for developers to read, in case you missed it, Quote:Action bar navigation modes are deprecated and not supported by inline toolbar action bars.Android team themselves provided the link to...
4 Dec 2016 by Afzaal Ahmad Zeeshan
A few things to note here, first of all use the following type for script, But this is not necessary at all now, browsers are smart enough. You can always omit this and it will work. Secondly, jQuery code needs to come inside a handler otherwise $ won't...
16 May 2017 by Afzaal Ahmad Zeeshan
This is a very common question, asked by every beginner. To understand how these things work, you first need to understand how a server communicates with a client device. HTTP protocol works, in a way that you send a command to the server, and tell it what you need. The verbs (GET, POST, etc.)...
10 Jun 2017 by Afzaal Ahmad Zeeshan
Have a look at your code, while (reader.Read()) { //read data emp = new Reservation(); emp.Id = Convert.ToInt32(reader.GetValue(0)); emp.Room_No = reader.GetValue(1).ToString(); emp.Room_Description = reader.GetValue(2) as string;//reader.GetValue(3).ToString(); emp.Room_Capacity =...
22 Jun 2017 by Afzaal Ahmad Zeeshan
Technically your need is unclear and very much ambiguous. Why do you need to do that? How can you convert, an object to an array? One simple way would be, to accept the object, create an array, add that object to the array, and serialize the array. :D I mean, this is a very surreal sort of...
24 Sep 2019 by Afzaal Ahmad Zeeshan
That was an easy guess, because you are sending the request 2 times. var x = client.Execute(request); // (client.Execute(request).Content); //
12 Jan 2018 by Agarwal1984
Hello, I want to need exporting excel using c# web api, my code exporting one time only when i created manually one excel template file in a folder, but my for loop not exporting second time. How can we resolve this issue. I want to use existing excel file like only template. We can't use any...
8 Feb 2016 by aglom08
@MuhammadUSman1You can use autoIT for this type of handling because autoIT is good and you can handle easily.Just you have to run exe file in selenium.
26 Jan 2023 by Agnib Pyne 2022
Hi All, I am working on a demo project using .Net Web API with C#, Angular, Entity Framework. Saving the code into Github and finally deploying the API and Angular. The purpose is to learn the end-to-end implementation of the technologies. I am...
26 Jan 2023 by Agnib Pyne 2022
Hi All, I tried below steps and I could see its working on Postman and Browser as well: 1) Added [action] on Controller [Route("api/SocialMediaLinks/[action]")] 2) Removed '/' from the calling url ...
20 Feb 2023 by Agnib Pyne 2022
Hi All, I have developed a web application using .Net Core API, Angular and PostgreSQL. Also, a whatsapp chatbot has been developed using Python, Twilio and MongoDB. Now, I want to deploy these for client use and planning to host these in...
6 Feb 2023 by Agnib Pyne 2022
Hi All, I am facing a scenario where I am trying to return a list of "ProductTypes". I may need this list in many places in the code and so defined an async method and then calling that method from another async [HttpGet] method and trying to...
12 Nov 2021 by ahilang37
// Define The Model Class as like the following public class ClsDeliveryReport { public string NUMBER { get; set; } public string TEMPLATE { get; set; } public object ATTACHMENT { get; set; } public string...
3 Aug 2013 by Ahmad Sadeq
i have this code it works fine in the same window (in my form process )i need to add some code to get a handle to the other current active window of anther process's to get the current language layout of iti did googled and search so but did-endplz help what should i write and where? ...
3 Aug 2013 by Ahmad Sadeq
i searched so and finally find this answer it's the waythanx string xxx = GetKeyboardLayout(GetWindowThreadProcessId(GetForegroundWindow(), IntPtr.Zero)).ToString();
15 Apr 2023 by Ahmad Yousef 2021
I'm posting to web API, but it keeps loading the page without any response... What I have tried: First I tried this code after putting my url, email, key and service: public async Task Login() { using (var client...
20 Feb 2017 by Ahmed Beh Elgzar
that's my method in API// Function to Load Lvl Info public HttpResponseMessage getLevelInfo(int GameID,int LvlNO) { Tbl_FrequancyGames Tbl_FrequancyGames = (from u in (db.Tbl_FrequancyGames) where (u.GameID == GameID && u.LevelNo==LvlNO ) select...
30 May 2014 by Ahmed Bensaid
http://stackoverflow.com/questions/17724168/win32-how-to-access-button-on-toolbar[^]http://social.msdn.microsoft.com/Forums/vstudio/en-US/82cf3f2b-b661-47c5-854d-dcd42b0d45c4/how-to-click-toolbar-button-in-another-application-using-api?forum=csharpgeneral[^]
11 Aug 2011 by ahsanriaz1K
Hello,Can any one tell me that by using google API, a small software/addin can be made which gives information about updation in a particular website and show updated pages?
20 Sep 2011 by ahsanriaz1K
Hi,Hoping well from your side.I want to insert a rich text formatting ribbon like Microsoft word ribbon to insert it in my Visual Studio windows application C# as well as ASP.net C# web app.Actually i want a rich formatting facility as given by MS word.I have heard that there is a...
17 Aug 2018 by Aitzaz Ahsan
I want to build Indoor Map for My building. we have different counters in the building. How to Draw markers using base map, second how i can calculate the distance between two counters and how to show the direction from starting point. I am expert in asp.net MVC. Any one can help me please. ...
29 May 2023 by ajay.raju531
Hi, Users can upload word document and those are saved in project folder. My requirement is user can edit and save uploaded word document in browser. After save the word content need to export it as pdf. Any ideas will be appreciated. Thanks,...
7 Aug 2011 by ajayxlnc
Hello Guys,I need help regarding MySpace API.I need to get the feeds from MySpace to my servers using REST API and OAuth tool. I tried to google and process and test it but i was not able to do so. Please help me out in this regards. I need the Java script or JSON sample code so that i...
20 Sep 2011 by Ajit Hegde
HiIf you are using wpf then check these linkshttp://blogs.msdn.com/b/wpf/archive/2010/08/03/introducing-microsoft-ribbon-for-wpf.aspx[^]http://www.codeproject.com/KB/WPF/ribboncontrol.aspx[^]http://wpf.codeplex.com/wikipage?title=WPF%20Ribbon%20Preview[^]
11 Jan 2016 by akash_pjr
Hello, I need to access my own LinkedIn profile details so that i can display those information in my website. I have written the script in PHP and javascript. Let me know procedure on how to obtain the Linkedin API and implement it. and what's the OAuth 1.0 & OAuth 2.0 ?Thanks, Akash
12 Jan 2016 by akash_pjr
I want to display connections in my website in the form of pie chart. How to access the connections API via my web application(application name "LLogin")? I have access to only few information(name,no of connections,location,summary). I want connection's designation,location etc.
16 Jun 2014 by Akhil Mittal
Add the below code in your web.config of your API under tag
7 Oct 2014 by Akhil Mittal
Ho w can we implement token based authentication in Web API 1.1.need a complete end to end small solution.Please do not provide links to articles explaining authentication in Web API 2.0.I need specifically for Web API 1.1, that do not support OWIN layer or in built token based authentication.
15 Oct 2014 by Akhil Mittal
I have a web API controller, and I am using Unity.WebAPI for resolving dependency.Following is my Bootstrapper.cs code, public static class Bootstrapper { /// /// Public method to initialise UnityContainer. /// public static...
7 Nov 2012 by aks87
I am getting an error _ Problem types giving error: API Programming Error (CS_ServiceRequest_PUB.Create_ServiceRequest): An error occurred when validating the descriptive flexfield. Additional information:Value IDC COLOCATION has been disabled.can anyone pls help on it?????????
27 Sep 2019 by Akshay malvankar
I am fetching response from PHP API and I made 3 functions for taking that response from API , one function return JSON response, second function return promises and 3rd function return observable, so want to know which approach is better while fetching response from PHP API, is it function...
4 Mar 2016 by Akshay Vaghasiya
I have to get details of hotels from one site (i.e, TripAdvisor). And from list of searched result, I have to book a hotel by using booking service of another site (i.e, booking.com). I have searched on Internet and came to conclusion that booking.com doesn't provide API services. They provides...
24 Jul 2011 by Alan Burkhart
A couple of ways to get it done...You can use a button, but set its FlatStyle property to Flat and BorderWidth property to 0. Add an image to the button and you're good to go.Another way is to dock a TableLayoutPanel in the form and add PictureBox controls to it. Set the Image property...