Code Monkey home page Code Monkey logo

laravel5-soundcloud's Issues

undefined index: soundcloud

When I try to publish the config settings, I'm getting this error:

[ErrorException]
Undefined index: soundcloud

any ideas?

Unprocessable Entity when uploading track

I have the same issue njasm/soundcloud#19.

The solution was a mistake in branch 2.x and take the last version.

Composer file from laravel wrapper :
"minimum-stability": "dev",
"require": {
"njasm/soundcloud": "~2.0",

i think you need to update this to the last version.

InvalidArgumentException in Auth.php line 31: No ClientID Provided.

Having a hell of a time getting this to work with Laravel 5,

I've followed the instructions in the README exactly (with the exception of changing my ::make call to include SoundCloud class's namespace so it could correctly resolve), I'm getting this error though:

InvalidArgumentException in Auth.php line 31:
No ClientID Provided.
Route::get('/test', function() {
    $soundcloud = $this->app->make('Njasm\Soundcloud\Soundcloud');
    echo $soundcloud->getAuthUrl();
});

I've also made sure that my services.php file is up-to-date with my client ID and client Secret.

Any ideas?

Thanks!

Laravel 5.4 Support

What is needed to support 5.4? I'm willing to work on it if it's not already underway.

getting 401 Unauthorized when doing codeForToken exchange

Hi there, maybe you have an idea why this is happening?
i just do this:
(after the user redirected back to my app with the code in the url)
$soundcloud = new \Njasm\Soundcloud\SoundcloudFacade(
Config::get('services.soundcloud.client_id'),
Config::get('services.soundcloud.client_secret'),
Config::get('services.soundcloud.redirect_uri')
);
$soundcloud->codeForToken($request->code);

and get this response:

Response {#376 ▼
-httpVersion: "HTTP/1.1"
-httpCode: "401"
-httpCodeString: "Unauthorized\r"
-response: """
HTTP/1.1 401 Unauthorized\r\n
Access-Control-Allow-Headers: Accept, Authorization, Content-Type, Origin\r\n
Access-Control-Allow-Methods: GET, PUT, POST, DELETE\r\n
Access-Control-Allow-Origin: \r\n
Access-Control-Expose-Headers: Date\r\n
Cache-Control: private, max-age=0, must-revalidate\r\n
Date: Fri, 02 Oct 2015 15:08:11 GMT\r\n
Server: am/2\r\n
Content-Length: 0\r\n
\r\n
"""
-info: array:26 [▼
"url" => "https://api.soundcloud.com/oauth2/token"
"content_type" => null
"http_code" => 401
"header_size" => 349
"request_size" => 484
"filetime" => -1
"ssl_verify_result" => 0
"redirect_count" => 0
"total_time" => 0.344
"namelookup_time" => 0.016
"connect_time" => 0.078
"pretransfer_time" => 0.25
"size_upload" => 244.0
"size_download" => 0.0
"speed_download" => 0.0
"speed_upload" => 709.0
"download_content_length" => 0.0
"upload_content_length" => 244.0
"starttransfer_time" => 0.344
"redirect_time" => 0.0
"redirect_url" => ""
"primary_ip" => "93.184.220.127"
"certinfo" => []
"primary_port" => 443
"local_ip" => "10.0.0.2"
"local_port" => 59460
]
-errno: 0
-errorString: ""
-headers: array:8 [▼
"Access-Control-Allow-Headers" => "Accept, Authorization, Content-Type, Origin"
"Access-Control-Allow-Methods" => "GET, PUT, POST, DELETE"
"Access-Control-Allow-Origin" => "
"
"Access-Control-Expose-Headers" => "Date"
"Cache-Control" => "private, max-age=0, must-revalidate"
"Date" => "Fri, 02 Oct 2015 15:08:11 GMT"
"Server" => "am/2"
"Content-Length" => "0"
]
-body: ""
}

btw -
i removed the deprecated ->asJson() here:
old:
$response = $this->post('/oauth2/token', $finalParams)->asJson()->request()->bodyObject();
new:
$response = $this->post('/oauth2/token', $finalParams)->request()->bodyArray();

What am I doing wrong here?

Forgive me, I'm back to Laravel after a few years. What am I doing wrong here? I've edited composer.js as required.

Could not find package laravel5-soundcloud at any version for your minimum-
stability (dev). Check the package spelling or your minimum-stability

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.