You can use antibiotic eye drops for bacterial pink eye, and anti viral eye drops for viral pink eye. Bacterial and viral pink eye is contagious. You should be careful not to infect others. You can't share towel pillow and eye drops with others. And you need to wash your hand with soaps if you often rub your eyes with hands, because the bacteria or viral on your hand can infect others. You can apply artificial tears to moisten your eyeballs but they can't help cure your infection.
If you just got the allergic pink eye, it will recover on its own after few days if you stop touching the allergens. But you can also use artificial tears to lubricate your eyes and relieve the redness and dryness. You can also place a piece of ice on your closed eyes to calm down the inflammation. But I think you'd better see an eye doctor immediately.