Skip to content

Conversation

@jayasahan
Copy link

What does this PR do?

I have made a template of a URL shorter with Python using Appwrite functions

Test Plan

After this, I would make a basic URL shortener and add it to this.

Have you read the Contributing Guidelines on issues?

Yes

@jayasahan
Copy link
Author

This is the example URL shortener

from appwrite import Client

client = Client(
    "YOUR_API_ENDPOINT",
    "YOUR_API_KEY"
)

long_url = "https://example.com"
short_url = shorten_url(long_url)

print("Shortened URL:", short_url)


And my instrutions

To run this script, you will need to replace YOUR_API_ENDPOINT and YOUR_API_KEY with your own Appwrite project settings. You can then run the script from the command line:

python shorten_url.py

This will print the shortened URL to the console. You can then use this short URL to access the original long URL.

Copy link
Member

@loks0n loks0n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @jakaya123. Thanks for your PR

We haven't assigned you to this issue and it isn't in the required format for a template. To contribute to this repository, I recommend first:

  • Familiarise yourself with Appwrite and Appwrite Functions.
  • Try using and extending an existing template in an Appwrite project.
  • Read the CONTRIBUTING.md guide located in this repository.

If you need help, I recommend reaching out to our community on discord

@loks0n loks0n closed this Oct 6, 2023
@jayasahan jayasahan deleted the jakaya123-patch-1 branch October 7, 2023 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants