Is it possible to see the source code of any api? - api

I would like to see the source code of any api/Web Api or web service.
Is it possible ? If yes, then how can I do that?

You can't see compiled code, you can only see some html with your browser (f12)

Related

how do you tell if a website is using docusaurus?

How can you tell if a documentation website is using Docusaurus?
Take for example this website:
https://beta.openai.com/docs/api-reference/introduction
I suspect that it was build with Docusaurus but I didn't find any browser extension to confirm it.
It's not built with Docusaurus.
It is simple to identify. Take the Algolia website for example, if you view the page source of any page, and search for docusaurus, you can find some results:

InternetExplorerDriver not opening site, but user can open it

I'm working in a highly secured environment. I can only use IE11 by company's policy. I'm trying to implement test automation on my project.
I'm using Selenium and IEDriver.
Currently I'm trying to implement basic scenario by just opening application page.
When I'm trying to do it via IEDriver, the page is not getting opened and the message "This page cannot be displayed" is shown.
But when I open the page manually by just typing in the url to the address bar everything works fine.
I guess it has something to do with the cookies that are coming with the request I'm making manually. Seems like those cookies contain some signature.
Can someone advise me how can I track the problem to resolve it?
Thanks.
Be sure top follow the required configuration section on this site: https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver
I had some issues with IE acting the same way until following this setup.
So the issue was fixed by setting proxy.
Seems like there was a change in security rules recently.

Using import.io on a php page

HI trying to run an import io api on a php page and no data is detected.
Is it possible to obtain data from here
or similar web pages?
Thanks
Yes, you can create an API to a PHP page. I have created an API for this website, without any issue.
https://import.io/data/mine/?id=628e1406-9674-4196-b2e2-43a5f49262f4
You can also paginate nicely with this website, as the URL pattern is consistent and you do not need cookies.
http://www.charityperformance.com/charity-search.php?start=20&cat=&search=
http://www.charityperformance.com/charity-search.php?start=40&cat=&search=
If you would like to chat about a specific issue or website, I would suggest contacting support#import.io for further help.
Thanks,
Meg

Why my programatically pulled webpage is different from what i see in the browser?

I am using crawler4j to pull some data from Google play store (https pages). However, I checked my downloaded html content and found that it is slightly different from the page source I see in the browser. Why? Is it because Google detected that I am using a bot client (so my http request is handled differently)?
Can anyone help me? Thanks a lot!
I have solved the problem. THANKS for all the help :)

Integrate fiddler with Flex technology

How can I integrate fiddler with Flex 3? Flex uses - AMF protocol to exchange messages.
Can someone please help me in integrating Fiddler with Flex technology?
I don't really know what you mean by "integrate", but Fiddler should see your Flex traffic just fine. A community member has written an Inspector object for the AMF format; he's posted the archive in the Files section of the Fiddler Google Group: http://groups.google.com/group/httpfiddler
You can download an inspector plugin for AMF from http://amfparser.codeplex.com/.
Just download the dll, put it into Fiddlers "Inspectors" folder and restart Fiddler. Now you should have a new "AMF" view within the inspectors view.
I tried to use Fiddler 4 with amf parser but no success it was showing all garbage data. I found Charles Proxy similar to Fiddler but not that advanced but it has great amf support and i was able to see all the requested response properly.
https://www.charlesproxy.com/