angelov / use0mk Goto Github PK
View Code? Open in Web Editor NEWphp class for using the API of http://0.mk url shortening service
Home Page: http://0.mk
php class for using the API of http://0.mk url shortening service
Home Page: http://0.mk
/** * use0mk.class.php v1.0 * * 0.mk - Shorten your links! * http://0.mk * * 0.mk API Documentation: http://0.mk/api * * Newer versions of this class will be available on http://0.mk/use0mk */ USAGE: Include the class: include('use0mk.class.php'); Create an object for the class: $use0mk = new use0mk(); If you want to login to the service add your username and apikey as parameters when you're creating the object. example: $use0mk = new use0mk("0mkapi", "1a7854a2226925282e54d1a01af5058c"); Actions: - Shortening long link: example: $use0mk->shortenUrl("http://google.com/"); If the shortening is sucessful the function will return the short link. If not, you'll get the same link that you inserted. - Previewing short link: example: $use0mk->previewUrl("http://0.mk/example"); If the link is valid and exists in the database the function will return the long link. If not, you'll get the same link that you inserted. - Shortening all long links in a string: example: $use0mk->shortenAll("Links in string: http://google.com/ http://yahoo.com"); All links in the inserted string will be sent for shortening and the old long links will be replaced with the new short ones. If shortening of some of the links is unsucessful, this link won't be replaced. For newer versions of the class check http://0.mk/use0mk Happy shortening :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.