Once at the Developer Profile page, you will need to create a Daily Motion account if you do
not already have one. Click on "Create a new API Key". Enter "http://127.0.0.1:8080/Callback"
under "Callback URL" and select "Native Application" under "Application Profile". Enter a port
number other than 8080 if that is what you intend to use.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Class OAuth2ClientCredentials (1.39.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.39.0 (latest)](/java/docs/reference/google-oauth-client/latest/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)\n- [1.38.2](/java/docs/reference/google-oauth-client/1.38.2/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)\n- [1.37.0](/java/docs/reference/google-oauth-client/1.37.0/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)\n- [1.36.0](/java/docs/reference/google-oauth-client/1.36.0/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)\n- [1.34.1](/java/docs/reference/google-oauth-client/1.34.1/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)\n- [1.33.3](/java/docs/reference/google-oauth-client/1.33.3/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials)\n- [1.32.1](/java/docs/reference/google-oauth-client/1.32.1/com.google.api.services.samples.dailymotion.cmdline.OAuth2ClientCredentials) \n\n public class OAuth2ClientCredentials\n\nOAuth 2 credentials found in the [Developer\nProfile Page](http://www.dailymotion.com/profile/developer).\n\nOnce at the Developer Profile page, you will need to create a Daily Motion account if you do\nnot already have one. Click on \"Create a new API Key\". Enter \"\u003chttp://127.0.0.1:8080/Callback\u003e\"\nunder \"Callback URL\" and select \"Native Application\" under \"Application Profile\". Enter a port\nnumber other than 8080 if that is what you intend to use. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e OAuth2ClientCredentials \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Fields\n-------------\n\n### API_KEY\n\n public static final String API_KEY\n\nValue of the \"API Key\".\n\n### API_SECRET\n\n public static final String API_SECRET\n\nValue of the \"API Secret\".\n\n### DOMAIN\n\n public static final String DOMAIN\n\nDomain name in the \"Callback URL\".\n\n### PORT\n\n public static final int PORT\n\nPort in the \"Callback URL\".\n\nStatic Methods\n--------------\n\n### errorIfNotSpecified()\n\n public static void errorIfNotSpecified()\n\nConstructors\n------------\n\n### OAuth2ClientCredentials()\n\n public OAuth2ClientCredentials()"]]