Cordova plugin for Pinterest
Cordovaの問題で困っていますか?
本格的なプロジェクトを構築している場合、トラブルシューティングに時間を費やす余裕はありません。Ionicのエキスパートが、保守、サポート、統合に関する公式サポートを提供しています。
インストール
Ionic Native Enterprise はIonic Teamが完全にサポートしメンテナンスしているプラグインを利用できます。 詳しくみる か、 エンタープライズプラグインに興味があれば 連絡ください
サポートしているプラットフォーム
- Android
- iOS
利用方法
React
Angular
import { Pinterest, PinterestUser, PinterestPin, PinterestBoard } from '@ionic-native/pinterest/ngx';
constructor(private pinterest: Pinterest) { }
...
const scopes = [
this.pinterest.SCOPES.READ_PUBLIC,
this.pinterest.SCOPES.WRITE_PUBLIC,
this.pinterest.SCOPES.READ_RELATIONSHIPS,
this.pinterest.SCOPES.WRITE_RELATIONSHIPS
];
this.pinterest.login(scopes)
.then(res => console.log('Logged in!', res))
.catch(err => console.error('Error loggin in', err));
this.pinterest.getMyPins()
.then((pins: PinterestPin[]) => console.log(pins))
.catch(err => console.error(err));
this.pinterest.getMe()
.then((user: PinterestUser) => console.log(user));
this.pinterest.getMyBoards()
.then((boards: PinterestBoard[]) => console.log(boards));

