Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Implement WARP+ Unlimited subscription redeem #7

Merged
merged 3 commits into from
Apr 8, 2020

Conversation

perillamint
Copy link
Contributor

Implement WARP+ Unlimited subscription redeem using account API.

Thanks to @teslamint for a tip.

@perillamint
Copy link
Contributor Author

This will fix issue #6

@cpbotha
Copy link

cpbotha commented Apr 3, 2020

I just tried this out with my existing Warp+ Unlimited license key, it works like a charm.

Implement WARP+ Unlimited subscription redeem using account API.

Thanks to @teslamint for a tip.
@perillamint
Copy link
Contributor Author

Fixed to replace WARP+ key only when the given key is different from registered one.

@ViRb3
Copy link
Owner

ViRb3 commented Apr 3, 2020

I will take a look at this first thing tomorrow after I submit my assignment. Thanks for the patience!

@LuuOW
Copy link

LuuOW commented Apr 6, 2020

Sr can you tell me how to or were find the API calls to get the licence key ?

@teslamint
Copy link

Sr can you tell me how to or were find the API calls to get the licence key ?

You can get the license key from account tab in the app. (tap the hamburger menu)

@LuuOW
Copy link

LuuOW commented Apr 6, 2020

Sr can you tell me how to or were find the API calls to get the licence key ?

You can get the license key from account tab in the app. (tap the hamburger menu)

I'm referring to the licence key generated by the script, not the default licence key in the 1.1.1.1 app

@teslamint
Copy link

Sr can you tell me how to or were find the API calls to get the licence key ?

You can get the license key from account tab in the app. (tap the hamburger menu)

I'm referring to the licence key generated by the script, not the default licence key in the 1.1.1.1 app

If you are looking for the license key with new account generated by script, send the GET request to {api}/reg/{account_id}/account with access_token as a Bearer token.

@LuuOW
Copy link

LuuOW commented Apr 6, 2020

Sr can you tell me how to or were find the API calls to get the licence key ?

You can get the license key from account tab in the app. (tap the hamburger menu)

I'm referring to the licence key generated by the script, not the default licence key in the 1.1.1.1 app

If you are looking for the license key with new account generated by script, send the GET request to {api}/reg/{account_id}/account with access_token as a Bearer token.

Using the access token as bearer token and doing the request like this
https://api.cloudflare.com/client/v0a848/reg/X0XXa1f7-XXXXXX-a2d2-XX879cad6de/account

I get error 505 not allowed

@teslamint
Copy link

Sr can you tell me how to or were find the API calls to get the licence key ?

You can get the license key from account tab in the app. (tap the hamburger menu)

I'm referring to the licence key generated by the script, not the default licence key in the 1.1.1.1 app

If you are looking for the license key with new account generated by script, send the GET request to {api}/reg/{account_id}/account with access_token as a Bearer token.

Using the access token as bearer token and doing the request like this
https://api.cloudflare.com/client/v0a848/reg/X0XXa1f7-XXXXXX-a2d2-XX879cad6de/account

I get error 505 not allowed

try: https://api.cloudflareclient.com/v0a848/reg/X0XXa1f7-XXXXXX-a2d2-XX879cad6de/account

@perillamint
Copy link
Contributor Author

It seems Argo routing does not active unless the device is marked as active, so I added code to mark a device as an active device.

Any idea for a user interface? @ViRb3 (I don't think current user interface (asking y/n on startup) is not so good for automated users)

@ViRb3
Copy link
Owner

ViRb3 commented Apr 7, 2020

I assume you mean a graphical user interface (GUI)? If that's the case, unfortunately I have no plans for that. This tool is mean to be a simple, portable CLI tool. Regarding automation, that is a good point, I am tracking it in #8. Now, I am working on reviewing Cloudflare's changes and merging this PR.

@LuuOW
Copy link

LuuOW commented Apr 7, 2020

Sr can you tell me how to or were find the API calls to get the licence key ?

You can get the license key from account tab in the app. (tap the hamburger menu)

I'm referring to the licence key generated by the script, not the default licence key in the 1.1.1.1 app

If you are looking for the license key with new account generated by script, send the GET request to {api}/reg/{account_id}/account with access_token as a Bearer token.

Using the access token as bearer token and doing the request like this
https://api.cloudflare.com/client/v0a848/reg/X0XXa1f7-XXXXXX-a2d2-XX879cad6de/account

I get error 505 not allowed

try: https://api.cloudflareclient.com/v0a848/reg/X0XXa1f7-XXXXXX-a2d2-XX879cad6de/account

Done! Thank you so much for your help i finally could get the key, thank you <3

@ViRb3 ViRb3 merged commit 82eb4ae into ViRb3:master Apr 8, 2020
@ViRb3
Copy link
Owner

ViRb3 commented Apr 8, 2020

@perillamint Thank you very much for your contribution! I refactored the code a bit and added some logic to handle edge cases, but apart from that your work is perfect!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants