I'm currently developing a C# API that connects to MAL for developing clients applications.
My problem is that currently I'm using the REST API of MAL documented in this page: http://myanimelist.net/modules.php?go=api#animevalues
Everything there function wonderfully, but my problem is that with only that services I cannot query about a user anime list or manga list. Neither for their score, progression, etc of their anime/manga.
My question is that I'm wrong and that info can be obtain with that API?
I know that I can access a user animelist (or mangalist) like: http://myanimelist.net/animelist/ and parse the content to obtain the info. But I was wondering if I can get that info with the REST API that is more robust (not as weak to changes in the page as parsing the html).
Thanks
It seems odd that the API does not appear to have this capability, but I also couldn’t find any information on it.
What you can use however is the following URL:
http://myanimelist.net/malappinfo.php?u=<username>
Apart from the username, it accepts a type parameter to query either the anime or manga list. There appears to be also a status parameter, but I have no idea how that works.
I also just found this thread on the topic.
Related
Is anyone using VB.Net to access the Acumatica contract based REST API? I really need some help getting started. I am experienced in VB.Net, but new to Acumatica and I am a little overwhelmed by all of the documentation. I just want to start with something simple ... for example, log into Acumatica, get a list of stock parts & log out. Does anyone have any VB.Net code they would be willing to share? Or maybe a tutorial you could point me to? I spent a few hours looking through a lot of documentation but could not seem to find what I was looking for to get me started. I would appreciate any help you can provide. Thanks in advance...
I wrote a PHP binding for the Acumatica REST APIs. Some of the criticisms above are somewhat valid...it's a little unique as APIs go, and not very well documented. That's why to get started... you will want to get Postman: https://www.postman.com/
In Postman, setup a POST request to http://youracumsticaurl/entity/auth/login
Use JSON body with your user/pass/company details:
{
"name" : "admin",
"password" : "yourpass",
"company" : "Company name full text",
"locale" : "en-US"
}
for company....use the full text of the company in the tenant...not the id.
Next with Postman do a simple get request for an item:
http://localhost/Acumatica2021R2/entity/Default/20.200.001/StockItem/someitemid
...where "someitemid" is a valid stock item id
Once you get that far, you can start using Postman to write your VB.NET API calls. Here is some info on calling a REST web service with VB.NET: https://dotnetco.de/setup-post-rest-webservice-asp-net-vb-net/
It takes some messing around but the REST API works pretty well once you get your calls setup correctly. I login and logout on every call, which is probably not best practice but avoids some of the session management headaches with cookies and Acumatica. YMMV with that depending on use case and call volume.
I use the rest api client available on the Acumatica github site. (link below)
I'm using C# in my project, but there's no reason you couldn't use this library with vb.net.
I had to update the library to add custom fields and custom endpoints which would require you update the code in C#, but if you just want the base endpoints it should work fine.
https://github.com/Acumatica/AcumaticaRESTAPIClientForCSharp
I am looking to create a web service from an existing API. The existing API is from a separate Windows program that allows the calculation of mileages between 2 more more locations. The API is in C#. There are also different types of calculations (Shortest Distance, Lowest-Cost, etc).
I am confused on how to create a RESTFUL web service that will allow multiple locations. Example in RESTFUL API tutorials show for an example api/books/1/To Kill A Mockingbird/ would get the record for a book. But how would this be for multiple locations? Would it be api/sd/Kansas City,MO/Chicago,IL/Miluwake,WI? How would it know if I'm looking to get the calculations of 2 vs. 10 locations? Could I program it to have 10 locations entered in the URL?
You don't have to use url segments to accept parameters. You could use a query string parameter with place names, say, semicolon-delimited, then split them out in your code.
/api/sd?cities=Kansas City,MO;Chicago,IL;Miluwake,WI
Then in your code just use Request.QueryString["cities"].Split(';');
I think that as your route grows, you may run into other problems such as a url that is too long (there are limits to URL size, from what I understand -- https://stackoverflow.com/a/1051565/507025). If you're going to have and API that can accept an endless number of parameters, I think you would want to do something like sending a JSON object with the request so the API controller can process it.
Additionally, a JSON object might be simpler to process, code wise.
Try here: https://stackoverflow.com/a/20226220/507025
I am using SugarCRM v.6.5.16
Soap: http://{CRM Path}/service/v4_1/soap.php
I have been tasked to create a program that reads values from a JSON string to input into SugarCRM.
The object creation of Account, Contact, Opportunity etc. is working just fine. I am however unable to the the set_realtionship or set_realationships from the SOAP API to work.
If possible could someone give me a quick example of how to make this work.
I have found very little documentation regarding coding in C# and SugarCRM SOAP functions. I can directly insert into the 'link' table but would prefer to utilize the API since somebody took the time to write it.
If REST would work better than SOAP an example of that would also be useful.
Thanks
It is with sights for the future recommended by Sugar to use REST. Advantages are that REST is faster than SOAP and REST will live longer in the product SugarCRM.
I'm creating a form on a website that enters the lead directly into Salesforce, using the Enterprise API, which is going just fine.
I'd like to replace my hard-coded paired drop-down list of countries/states, and the list of industries, with the pick lists available within Salesforce, but I'm having a lot of trouble trying to navigate through the Metadata API.
Has anyone had any success with this?
I've tried the methods of listMetadata and describeMetadata, but can't seem to retrieve anything that is anywhere near what I'm after.
Thanks in advance!
I'm using C#, .NET 4, and the WSDL service references.
If you have these defined as picklists in salesforce, then you don't need the metadata API, you can use describeSObject from the enterprise API to get the picklist values. (the picklist values will be contained in the field structure for the relevant field)
Basically I am trying to make a generic client which will retrieve the Methods Names, Parameters that it takes and Parameter that it returns from the any kind of web service. I thought of parsing the WSDL xml for that, but in that the required information is scattered over different elements. then I saw the SOAP Envelopes which contains the exact information I need. so I thought of downloading the web service page and doing the series of string operations so that I get extract the data I need from particular tag. but I guess there might be any C# functions which can give me this data containing the Request and Response headers information.
Can anybody please guide me.
Thanks in advance.
The only valid approach is through WSDL because it is the only real description of the service. Those "help pages" are just a feature of ASMX. WCF for example doesn't have this help page showing examples of SOAP messages. Also examples of SOAP messages don't really cover the whole content of the message - it doesn't correctly show which elements are mandatory and which are not. It doesn't correctly show advanced features like XSD choices etc. If you want to write generic client you must parse WSDL. It is really BIG task. Also be aware that WSDL can reference other WSDLs and XSDs.
To make things much more easier you should check available classes in .NET framework to deal with service descriptions. For example System.ServiceModel.Description.MetadataExchangeClient and other classes from that namespace.