meganz / MEGAcmd

Command Line Interactive and Scriptable Application to access MEGA
Other
1.89k stars 406 forks source link

problem MEGA-CMD #969

Open ferdinandogalera opened 2 months ago

ferdinandogalera commented 2 months ago

Dear Support.

I have been testing the MEGA-CMD solution on my CentOS 8 Linux server and have encountered some issues that I need your help with:

  1. Confirmation email language:**
  1. Account creation solution:**
  1. Observations:**
  1. Log example:**

I created 3 accounts today: [oitavoemail@tanobau.com](mailto:oitavoemail@tanobau.com), [nonoemail@tanobau.com](mailto:nonoemail@tanobau.com) and [decimoemail@tanobau.com](mailto:decimoemail@tanobau.com). All were invited by [tanobaubr@gmail.com](mailto:tanobaubr@gmail.com). The mega-showpcr command generated the following log:

mega-showpcr Outgoing PCRs: oitavoemail@tanobau.com (id: 9r4qhDFIWRg, creation: Tue, 09 Apr 2024 10 :59:34 -0300, modification: Tue, 09 Apr 2024 10:59:34 -0300) decimoemail@tanobau.com (id: vSPCseOq548, creation: Wed, 10 Apr 2024 10 :17:00 -0300, modification: Wed, 10 Apr 2024 10:17:00 -0300) nonoemail@tanobau.com (id: olrMsmZFNfQ, creation: Wed, 10 Apr 2024 10:11:57 - 0300, modification: Wed, 10 Apr 2024 10:11:57 -0300)

  1. Achievements and tanobau.com domain:

When accessing the TANOBAUBR@gmail.com account on MEGA.NZ and going to "https://mega.nz/fm/dashboard" (achievements), you will not see any of the emails listed in the mega-showpcr command. This is because achievements are assigned to the email used to create the MEGA account, in this case tanobaubr@gmail.com.

Since the tanobau.com domain is monitored and only allows 1 account, the achievements of the @tanobau.com accounts will not be assigned to the main account?

To work around this, you can:

Create sub-accounts on MEGA using the tanobaubr@gmail.com email as the main one. The achievements of the sub-accounts will be assigned to the main account. Use a third-party service to manage the achievements of multiple accounts.

  1. MEGA API package and MEGA-CMD:

I understand the frustration with installing and using the MEGA API package. MEGA-CMD is a simpler and more functional alternative for many users.

  1. Limitations of MEGA-CMD in PHP scripts:

It is true that MEGA-CMD does not work inside PHP scripts when using the mega-login command. This is because of the browser-based authentication, which is not possible in scripts.

As a workaround, you can:

Use the PHP library "API mega" to interact with the MEGA API. Run the mega-login command manually before running the PHP script. Use a third-party service to automate authentication and use of the MEGA API.

Final considerations:

I understand that you are planning to use MEGA for a large number of accounts and files. It is important to consider the limitations of the MEGA API and MEGA-CMD when planning your project.

I recommend that you explore the alternatives and solutions mentioned above to ensure that your needs are met.

I appreciate your understanding and hope this response has been helpful.

I will be available to answer any questions you may have.

Additional notes:

This text has been translated to English using Google Translate. I have tried my best to ensure the accuracy of the translation, but there may be some errors. If you have any questions or concerns, please feel free to contact me. This text has been create GEMINI IA

thanks Ferdinando Galera